(object)
return (isinstance(object, types.CoroutineType) or
            isinstance(object, types.GeneratorType) and
                bool(object.gi_code.co_flags & CO_ITERABLE_COROUTINE) or
            isinstance(object, collections.abc.Awaitable))
Return true if object can be passed to an ``await`` expression.
Return true if object can be passed to an ``await`` expression.
Return true if object can be passed to an await expression .
def isawaitable(object):
    """Return true if object can be passed to an ``await`` expression."""
    return (isinstance(object, types.CoroutineType) or
            isinstance(object, types.GeneratorType) and
                bool(object.gi_code.co_flags & CO_ITERABLE_COROUTINE) or
            isinstance(object, collections.abc.Awaitable))
def isawaitable ( object ) : return ( isinstance ( object , types . CoroutineType ) or isinstance ( object , types . GeneratorType ) and bool ( object . gi_code . co_flags & CO_ITERABLE_COROUTINE ) or isinstance ( object , collections . abc . Awaitable ) )