
    Xh                    v    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y)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.3)__version__create_commget_comm_managerNc                  2    e Zd Z	 	 	 d	 	 	 	 	 	 	 	 	 	 	 ddZy)	DummyCommNc                     y )N )selfmsg_typedatametadatabufferskeyss         A/var/www/html/myenv/lib/python3.12/site-packages/comm/__init__.pypublish_msgzDummyComm.publish_msg   s     	    )NNN)r   strr   r	   r   r	   r   r   r   r   returnNone)__name__
__module____qualname__r   r   r   r   r   r      sL     "#  	
   
r   r   c                     t        | i |S )zgCreate a Comm.

    This method is intended to be replaced, so that it returns your Comm instance.
    )r   )argskwargss     r   _create_commr#   '   s    
 d%f%%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,      sN    #  D D 	 	&
 $ r   