o
    B©Zh¡  ã                   @  st   d Z ddlmZ ddlmZ ddlmZmZmZm	Z	 dZ
g d¢ZdaG d	d
„ d
eƒZddd„Zddd„ZeZeZdS )a7  Comm package.

Copyright (c) IPython Development Team.
Distributed under the terms of the Modified BSD License.

This package provides a way to register a Kernel Comm implementation, as per
the Jupyter kernel protocol.
It also provides a base Comm implementation and a default CommManager for the IPython case.
é    )Úannotations)ÚAnyé   )ÚBaseCommÚBuffersTypeÚCommManagerÚ	MaybeDictz0.2.1)Úcreate_commÚget_comm_managerÚ__version__Nc                   @  s   e Zd Z			dddd„ZdS )Ú	DummyCommNÚmsg_typeÚstrÚdatar   ÚmetadataÚbuffersr   Úkeysr   ÚreturnÚNonec                 K  s   d S )N© )Úselfr   r   r   r   r   r   r   úD/var/www/html/lang_env/lib/python3.10/site-packages/comm/__init__.pyÚpublish_msg   s   zDummyComm.publish_msg)NNN)r   r   r   r   r   r   r   r   r   r   r   r   )Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r      s
    ûr   Úargsr   Úkwargsr   r   c                  O  s   t | i |¤ŽS )zgCreate a Comm.

    This method is intended to be replaced, so that it returns your Comm instance.
    )r   )r   r   r   r   r   Ú_create_comm&   s   r   r   c                   C  s   t du rtƒ a t S )z¥Get the current Comm manager, creates one if there is none.

    This method is intended to be replaced if needed (if you want to manage multiple CommManagers).
    N)Ú_comm_managerr   r   r   r   r   Ú_get_comm_manager.   s   r    )r   r   r   r   r   r   )r   r   )Ú__doc__Ú
__future__r   Útypingr   Z	base_commr   r   r   r   r   Ú__all__r   r   r   r    r	   r
   r   r   r   r   Ú<module>   s    	

