Bump minimum required Python version to 3.7

This commit is contained in:
Lonami Exo
2022-01-09 13:00:45 +01:00
parent 721c803af9
commit 7ea30961ae
7 changed files with 19 additions and 34 deletions

View File

@@ -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]