Quote type hints

Otherwise, sphinx completely butchers the documentation.
This commit is contained in:
Lonami Exo
2019-05-08 17:16:09 +02:00
parent c6691dc6a8
commit d92d989569
11 changed files with 74 additions and 74 deletions

View File

@@ -102,7 +102,7 @@ class UserMethods(TelegramBaseClient):
# region Public methods
async def get_me(self: 'TelegramClient', input_peer: bool = False) \
-> typing.Union[types.User, types.InputPeerUser]:
-> 'typing.Union[types.User, types.InputPeerUser]':
"""
Gets "me", the current :tl:`User` who is logged in.
@@ -159,7 +159,7 @@ class UserMethods(TelegramBaseClient):
async def get_entity(
self: 'TelegramClient',
entity: hints.EntitiesLike) -> hints.Entity:
entity: 'hints.EntitiesLike') -> 'hints.Entity':
"""
Turns the given entity into a valid Telegram :tl:`User`, :tl:`Chat`
or :tl:`Channel`. You can also pass a list or iterable of entities,
@@ -253,7 +253,7 @@ class UserMethods(TelegramBaseClient):
async def get_input_entity(
self: 'TelegramClient',
peer: hints.EntityLike) -> types.TypeInputPeer:
peer: 'hints.EntityLike') -> 'types.TypeInputPeer':
"""
Turns the given entity into its input entity version.
@@ -380,7 +380,7 @@ class UserMethods(TelegramBaseClient):
async def get_peer_id(
self: 'TelegramClient',
peer: hints.EntityLike,
peer: 'hints.EntityLike',
add_mark: bool = True) -> int:
"""
Gets the ID for the given entity.