Replaced typehinting assertion with actual type hint.

This commit is contained in:
luckydonald 2020-11-08 12:55:20 +01:00
parent f98e5cb672
commit bfc663f19a

View File

@ -1154,7 +1154,8 @@ def resolve_bot_file_id(file_id):
# end if
# okey, so we're dealing with a photo.
assert isinstance(file, PhotoFileId)
file: PhotoFileId
photo_size = 's' if file.id or file.access_hash else 'x'
foto_size = file.photosize