Issue #24400: Resurrect inspect.isawaitable()
collections.abc.Awaitable and collections.abc.Coroutine no longer use __instancecheck__ hook to detect generator-based coroutines. inspect.isawaitable() can be used to detect generator-based coroutines and to distinguish them from regular generator objects.
Y
Yury Selivanov committed
fdbeb2b4b67e1e44c96127a06cf1bdf878f4f7ca
Parent: 2ab5b09