From 1f1f67b0a666b4fbb1e49f9e1acd7e5da7cd8d6e Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Sun, 16 Jan 2022 14:04:26 +0100 Subject: [PATCH] Remove unused _CacheType --- telethon/_client/uploads.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/telethon/_client/uploads.py b/telethon/_client/uploads.py index 5cfd43e4..92a2d36e 100644 --- a/telethon/_client/uploads.py +++ b/telethon/_client/uploads.py @@ -24,18 +24,6 @@ if typing.TYPE_CHECKING: from .telegramclient import TelegramClient -class _CacheType: - """Like functools.partial but pretends to be the wrapped class.""" - def __init__(self, cls): - self._cls = cls - - def __call__(self, *args, **kwargs): - return self._cls(*args, file_reference=b'', **kwargs) - - def __eq__(self, other): - return self._cls == other - - def _resize_photo_if_needed( file, is_image, width=1280, height=1280, background=(255, 255, 255)):