Ë
    :vžj¢  ã                  ó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         ú^/workspace/moltex-experiments/.pixi/envs/default/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 )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).
    )Ú_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   