
    $g                     "    d Z ddlmZ d Zd ZdS )zA
This file is used mainly as a bridge for thenable abstractions.
    )isawaitablec                 &      fd} |            S )Nc                  *   K      d {V           S )N obj
on_resolves   X/var/www/html/netbox-4.1.3/venv/lib/python3.11/site-packages/graphene/utils/thenables.pybuild_resolve_asyncz.await_and_execute.<locals>.build_resolve_async	   s#      z))))))$$$    r   )r   r	   r   s   `` r
   await_and_executer      s3    % % % % % %    r   c                 V    t          |           rt          | |          S  ||           S )z
    Execute a on_resolve function once the thenable is resolved,
    returning the same type of object inputed.
    If the object is not thenable, it should return on_resolve(obj)
    )r   r   r   s     r
   maybe_thenabler      s4     3 2 j111 :c??r   N)__doc__inspectr   r   r   r   r   r
   <module>r      sK           ! ! !
 
 
 
 
r   