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

@@ -164,17 +164,17 @@ class TelegramBaseClient(abc.ABC):
def __init__(
self: 'TelegramClient',
session: typing.Union[str, Session],
session: 'typing.Union[str, Session]',
api_id: int,
api_hash: str,
*,
connection: typing.Type[Connection] = ConnectionTcpFull,
connection: 'typing.Type[Connection]' = ConnectionTcpFull,
use_ipv6: bool = False,
proxy: typing.Union[tuple, dict] = None,
timeout: int = 10,
request_retries: int = 5,
connection_retries: int =5,
retry_delay: int =1,
retry_delay: int = 1,
auto_reconnect: bool = True,
sequential_updates: bool = False,
flood_sleep_threshold: int = 60,