From a91f1526cadf054fe8d7462038ff08988f5b416c Mon Sep 17 00:00:00 2001 From: EntireMusic Date: Sat, 5 Oct 2024 11:47:04 +0300 Subject: [PATCH] Refactor: Small changes related to typing --- telethon/client/uploads.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/telethon/client/uploads.py b/telethon/client/uploads.py index 7d99c1e2..45d2d786 100644 --- a/telethon/client/uploads.py +++ b/telethon/client/uploads.py @@ -6,13 +6,11 @@ import pathlib import re import typing from io import BytesIO -from typing import List, Any, Dict from ..crypto import AES from .. import utils, helpers, hints from ..tl import types, functions, custom -from ..tl.types import MessageEmpty, Message, MessageService try: import PIL @@ -135,7 +133,7 @@ class UploadMethods: comment_to: 'typing.Union[int, types.Message]' = None, ttl: int = None, nosound_video: bool = None, - **kwargs) -> list[Any] | Any: + **kwargs) -> list[typing.Any] | typing.Any: """ Sends message with the given file to the specified entity.