
    Xhh                         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y)    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    I/var/www/html/myenv/lib/python3.12/site-packages/jupyter_console/utils.pyr   r   	   s:     &&t,vvajja($//T?    )r	   typingr   jupyter_core.utilsr   r   r   TypeVarr   r   Union	Awaitable r   r   <module>r      sd      B AIIcN1::c1771akk!n+<#==> 1::cSTfCU r   