You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe the is_awaitable function in the code base should be removed. Instead, the function part of the standard library should be used.
I was having issues because I was using __getattr__ in a class and is_awaitable helper uses hasattr(value, "__await__"), resulting in a false positive.
The text was updated successfully, but these errors were encountered:
Since Python 3.5 there's an
inspect.isawaitable
function.I believe the
is_awaitable
function in the code base should be removed. Instead, the function part of the standard library should be used.I was having issues because I was using
__getattr__
in a class andis_awaitable
helper useshasattr(value, "__await__")
, resulting in a false positive.The text was updated successfully, but these errors were encountered: