From 9ca3b599fc28668ae25fd1674a63739ca8534f8f Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Mon, 18 Nov 2024 17:04:07 +0100 Subject: [PATCH] Fix Python 3.6 compatibility Introduced on accident by #4475. --- telethon/client/uploads.py | 2 +- telethon/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/telethon/client/uploads.py b/telethon/client/uploads.py index 82437b5f..c8b8d951 100644 --- a/telethon/client/uploads.py +++ b/telethon/client/uploads.py @@ -133,7 +133,7 @@ class UploadMethods: comment_to: 'typing.Union[int, types.Message]' = None, ttl: int = None, nosound_video: bool = None, - **kwargs) -> list[typing.Any] | typing.Any: + **kwargs) -> typing.Union[typing.List[typing.Any], typing.Any]: """ Sends message with the given file to the specified entity. diff --git a/telethon/version.py b/telethon/version.py index d8c63aac..f27eec37 100644 --- a/telethon/version.py +++ b/telethon/version.py @@ -1,3 +1,3 @@ # Versions should comply with PEP440. # This line is parsed in setup.py: -__version__ = '1.38.0' +__version__ = '1.38.1'