Update FileLike type hint to better reflect valid types (#4620)

This commit is contained in:
Darskiy 2025-05-20 23:13:43 +03:00 committed by GitHub
parent 59da66e105
commit 663a1808a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,7 +44,12 @@ FileLike = typing.Union[
typing.BinaryIO, typing.BinaryIO,
types.TypeMessageMedia, types.TypeMessageMedia,
types.TypeInputFile, types.TypeInputFile,
types.TypeInputFileLocation types.TypeInputFileLocation,
types.TypeInputMedia,
types.TypePhoto,
types.TypeInputPhoto,
types.TypeDocument,
types.TypeInputDocument
] ]
# Can't use `typing.Type` in Python 3.5.2 # Can't use `typing.Type` in Python 3.5.2