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