mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 05:19:41 +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:
@@ -2,7 +2,7 @@ import functools
|
||||
import inspect
|
||||
import typing
|
||||
|
||||
from .users import UserMethods, _NOT_A_REQUEST
|
||||
from .users import _NOT_A_REQUEST
|
||||
from .. import helpers, utils
|
||||
from ..tl import functions, TLRequest
|
||||
|
||||
@@ -107,7 +107,7 @@ class _TakeoutClient:
|
||||
return setattr(self.__client, name, value)
|
||||
|
||||
|
||||
class AccountMethods(UserMethods):
|
||||
class AccountMethods:
|
||||
def takeout(
|
||||
self: 'TelegramClient',
|
||||
finalize: bool = True,
|
||||
|
Reference in New Issue
Block a user