mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 13:29:47 +00:00
Remove unused _CacheType
This commit is contained in:
@@ -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)):
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user