mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
Remove messy subclassing in the TelegramClient
Since it was easy to cause MRO inconsistencies, and it's not really needed now that self is type hinted as the client.
This commit is contained in:
@@ -4,7 +4,6 @@ import os
|
||||
import pathlib
|
||||
import typing
|
||||
|
||||
from .users import UserMethods
|
||||
from .. import utils, helpers, errors, hints
|
||||
from ..requestiter import RequestIter
|
||||
from ..tl import TLObject, types, functions
|
||||
@@ -152,7 +151,7 @@ class _GenericDownloadIter(_DirectDownloadIter):
|
||||
self.request.offset -= self._stride
|
||||
|
||||
|
||||
class DownloadMethods(UserMethods):
|
||||
class DownloadMethods:
|
||||
|
||||
# region Public methods
|
||||
|
||||
|
Reference in New Issue
Block a user