• Yury Selivanov's avatar
    Issue #24400: Resurrect inspect.isawaitable() · fdbeb2b4
    Yury Selivanov yazdı
    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.
    fdbeb2b4
types.py 8.59 KB