Remove unused _CacheType

This commit is contained in:
Lonami Exo 2022-01-16 14:04:26 +01:00
parent 4f4c7040d1
commit 1f1f67b0a6

View File

@ -24,18 +24,6 @@ if typing.TYPE_CHECKING:
from .telegramclient import TelegramClient 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( def _resize_photo_if_needed(
file, is_image, width=1280, height=1280, background=(255, 255, 255)): file, is_image, width=1280, height=1280, background=(255, 255, 255)):