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

@@ -252,7 +252,7 @@ class AuthMethods(MessageParseMethods, UserMethods):
*,
password: str = None,
bot_token: str = None,
phone_code_hash: str = None) -> types.User:
phone_code_hash: str = None) -> 'types.User':
"""
Logs in to Telegram to an existing user or bot account.
@@ -327,7 +327,7 @@ class AuthMethods(MessageParseMethods, UserMethods):
last_name: str = '',
*,
phone: str = None,
phone_code_hash: str = None) -> types.User:
phone_code_hash: str = None) -> 'types.User':
"""
Signs up to Telegram as a new user account.
@@ -406,7 +406,7 @@ class AuthMethods(MessageParseMethods, UserMethods):
self: 'TelegramClient',
phone: str,
*,
force_sms: bool = False) -> types.auth.SentCode:
force_sms: bool = False) -> 'types.auth.SentCode':
"""
Sends the Telegram code needed to login to the given phone number.