U
    ÇÜe¦  ã                   @   sR   d Z ddlmZmZ dZdddgZdaG dd	„ d	eƒZd
d„ Z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.
é   )ÚBaseCommÚCommManagerz0.1.4Úcreate_commÚget_comm_managerÚ__version__Nc                   @   s   e Zd Zddd„ZdS )Ú	DummyCommNc                 K   s   d S )N© )ÚselfÚmsg_typeÚdataÚmetadataÚbuffersÚkeysr   r   úP/home/ankuromar296_gmail_com/.local/lib/python3.8/site-packages/comm/__init__.pyÚpublish_msg   s    zDummyComm.publish_msg)NNN)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r      s   r   c                  O   s
   t | |ŽS )zgCreate a Comm.

    This method is intended to be replaced, so that it returns your Comm instance.
    )r   )ÚargsÚkwargsr   r   r   Ú_create_comm   s    r   c                   C   s   t dk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   )Ú__doc__Z	base_commr   r   r   Ú__all__r   r   r   r   r   r   r   r   r   r   Ú<module>   s   
ý