
    ^h                    z    S r SSKJr  SSKJr  SSKJrJrJrJ	r	  Sr
/ SQrSq " S	 S
\5      rSS jrSS jr\r\rg)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                  >    \ rS rSr   S           SS jjrSrg)	DummyComm   Nc                    g )N )selfmsg_typedatametadatabufferskeyss         G/home/james-whalen/.local/lib/python3.13/site-packages/comm/__init__.pypublish_msgDummyComm.publish_msg   s     	    r   )NNN)r   strr   r	   r   r	   r   r   r   r   returnNone)__name__
__module____qualname____firstlineno__r   __static_attributes__r   r   r   r   r      sQ     "#  	
   
 r   r   c                     [        U 0 UD6$ )z_Create 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                 0    [         c
  [        5       q [         $ )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>r0      sN    #  D D 	 	&
 $ r   