
    Mh                    ~    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
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.
    )annotations)Any   )BaseCommBuffersTypeCommManager	MaybeDictz0.2.2)create_commget_comm_manager__version__Nc                      e Zd Z	 	 	 dddZdS )	DummyCommNmsg_typestrdatar	   metadatabuffersr   keysr   returnNonec                    d S )N )selfr   r   r   r   r   s         M/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/comm/__init__.pypublish_msgzDummyComm.publish_msg   s	     	    )NNN)r   r   r   r	   r   r	   r   r   r   r   r   r   )__name__
__module____qualname__r   r   r   r   r   r      s8         "#      r   r   argsr   kwargsr   r   c                     t          | i |S )zgCreate a Comm.

    This method is intended to be replaced, so that it returns your Comm instance.
    )r   )r    r!   s     r   _create_commr#   &   s    
 d%f%%%r   r   c                 :    t           t                      a t           S )zGet 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).
    )_comm_managerr   r   r   r   _get_comm_managerr&   .   s     #r   )r    r   r!   r   r   r   )r   r   )__doc__
__future__r   typingr   	base_commr   r   r   r	   r   __all__r%   r   r#   r&   r
   r   r   r   r   <module>r,      s     # " " " " "       D D D D D D D D D D D D   	 	 	 	 	 	 	 	& & & &
 
 
 
 $   r   