From bfc663f19aaddcac34b947069ceeb186096bc869 Mon Sep 17 00:00:00 2001 From: luckydonald Date: Sun, 8 Nov 2020 12:55:20 +0100 Subject: [PATCH] Replaced typehinting assertion with actual type hint. --- telethon/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/telethon/utils.py b/telethon/utils.py index 810888fa..79a3bc79 100644 --- a/telethon/utils.py +++ b/telethon/utils.py @@ -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