mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-30 17:59:55 +03:00
Replaced typehinting assertion with actual type hint.
This commit is contained in:
parent
f98e5cb672
commit
bfc663f19a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user