
    Xj                     V    d dl Z d dlmZ d dlmZmZ dgZe j                  ZdedefdZ	y)    N)Any)CoroutineTypeGeneratorTypeis_awaitablevaluereturnc                     t        | t              xsF t        | t              xr& t        | j                  j
                  t        z        xs t        | d      S )zReturn true if object can be passed to an ``await`` expression.

    Instead of testing if the object is an instance of abc.Awaitable, it checks
    the existence of an `__await__` attribute. This is much faster.
    	__await__)
isinstancer   r   boolgi_codeco_flagsCO_ITERABLE_COROUTINEhasattr)r   s    i/var/www/html/myl_app/scheduler-service/venv/lib/python3.12/site-packages/graphql/pyutils/is_awaitable.pyr   r   
   sQ     	5-( 	'e]+ A''*??@	'
 5+&    )
inspecttypingr   typesr   r   __all__r   r   r    r   r   <module>r      s5      .
55   r   