mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-10 10:49:39 +00:00
Bump minimum required Python version to 3.7
This commit is contained in:
@@ -48,19 +48,11 @@ FileLike = typing.Union[
|
||||
_tl.TypeInputFileLocation
|
||||
]
|
||||
|
||||
# Can't use `typing.Type` in Python 3.5.2
|
||||
# See https://github.com/python/typing/issues/266
|
||||
try:
|
||||
OutFileLike = typing.Union[
|
||||
str,
|
||||
typing.Type[bytes],
|
||||
typing.BinaryIO
|
||||
]
|
||||
except TypeError:
|
||||
OutFileLike = typing.Union[
|
||||
str,
|
||||
typing.BinaryIO
|
||||
]
|
||||
OutFileLike = typing.Union[
|
||||
str,
|
||||
typing.Type[bytes],
|
||||
typing.BinaryIO
|
||||
]
|
||||
|
||||
MessageLike = typing.Union[str, _tl.Message]
|
||||
MessageIDLike = typing.Union[int, _tl.Message, _tl.TypeInputMessage]
|
||||
|
Reference in New Issue
Block a user