mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-06 13:10:22 +03:00
Fix client proxy class for takeouts to access static members properly
This commit is contained in:
parent
fc2977fc0d
commit
e8d44c589d
|
@ -61,8 +61,11 @@ class _TakeoutClient:
|
||||||
wrapped[0] if single else wrapped, ordered=ordered)
|
wrapped[0] if single else wrapped, ordered=ordered)
|
||||||
|
|
||||||
def __getattribute__(self, name):
|
def __getattribute__(self, name):
|
||||||
if name[:2] == '__':
|
if name.startswith('__'):
|
||||||
# We want to override special method names
|
# We want to override special method names
|
||||||
|
if name == '__class__':
|
||||||
|
# See https://github.com/LonamiWebs/Telethon/issues/1103.
|
||||||
|
name = 'k'
|
||||||
return super().__getattribute__(name)
|
return super().__getattribute__(name)
|
||||||
|
|
||||||
value = getattr(super().__getattribute__('c'), name)
|
value = getattr(super().__getattribute__('c'), name)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user