mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-07 05:30:20 +03:00
Spaces
This commit is contained in:
parent
04f9ed557a
commit
c6ceff5533
|
@ -983,7 +983,7 @@ class AsyncClassWrapper:
|
||||||
val = w(*args, **kwargs)
|
val = w(*args, **kwargs)
|
||||||
return await val if inspect.isawaitable(val) else val
|
return await val if inspect.isawaitable(val) else val
|
||||||
|
|
||||||
if inspect.isfunction(w) or inspect.ismethod(w):
|
if callable(w):
|
||||||
return wrapper
|
return wrapper
|
||||||
elif isinstance(w, property):
|
elif isinstance(w, property):
|
||||||
return w.fget(self.wrapped)
|
return w.fget(self.wrapped)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user