o
    º¼tfh  ã                   @   sd   d dl Z d dlZd dlmZmZ e d¡Zdej	dej
eeje f f dej	def fdd„ZdS )	é    N)Úrun_syncÚensure_asyncÚTÚcoro.Úreturnc                 C   s(   t  | ¡st 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   © r   ú^/var/www/html/software/conda/envs/catlas/lib/python3.10/site-packages/jupyter_console/utils.pyr   	   s   
r   )r   Útypingr	   Zjupyter_core.utilsr   r   r   ÚTypeVarr   r   ÚUnionÚ	Awaitabler   r   r   r   Ú<module>   s
    
: