
    "dh                         d dl Z d dlZd dlmZmZ  ej        d          Zdej	        dej
        eej        e         f         f         dej	        def         fdZdS )    N)run_syncensure_asyncTcoro.returnc                     t          j        |           s,t          j        t          j        dt
          f         |           S t          |           S )a  Wraps coroutine in a function that blocks until it has executed.

    Parameters
    ----------
    coro : coroutine-function
        The coroutine-function to be executed.

    Returns
    -------
    result :
        Whatever the coroutine-function returns.
    .)inspectiscoroutinefunctiontcastCallabler   	_run_sync)r   s    5lib/python3.11/site-packages/jupyter_console/utils.pyr   r   	   s@     &t,, 0vaja($///T??    )r	   typingr   jupyter_core.utilsr   r   r   TypeVarr   r   Union	Awaitable r   r   <module>r      s         B B B B B B B B AIcNN1:c171ak!n+<#==> 1:cSTfCU      r   