Ë
    :vžj  ã                  ó  — d dl mZ d dlmZmZmZ d dlmZmZ erd dl	m
Z
mZ ddlmZ  G d„ de«      Z G d	„ d
e«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Zy)é    )Úannotations)ÚTYPE_CHECKINGÚAnyÚLiteral)ÚProtocolÚ	TypedDict)ÚCallableÚSequenceé   )ÚMimeBundleDescriptorc                  ó,   — e Zd ZU ded<   ded<   ded<   y)Ú
UpdateDatazLiteral['update']ÚmethodÚdictÚstatezlist[list[int | str]]Úbuffer_pathsN©Ú__name__Ú
__module__Ú__qualname__Ú__annotations__© ó    úe/workspace/moltex-experiments/.pixi/envs/default/lib/python3.12/site-packages/anywidget/_protocols.pyr   r      s   … ØÓØƒKØ'Ô'r   r   c                  ó   — e Zd ZU ded<   y)ÚRequestStateDatazLiteral['request_state']r   Nr   r   r   r   r   r      s   … Ø$Ô$r   r   c                  ó"   — e Zd ZU ded<   ded<   y)Ú
CustomDatazLiteral['custom']r   r   ÚcontentNr   r   r   r   r   r      s   … ØÓØ„Mr   r   c                  ó"   — e Zd ZU ded<   ded<   y)ÚJupyterWidgetContentÚstrÚcomm_idz*UpdateData | RequestStateData | CustomDataÚdataNr   r   r   r   r!   r!      s   … ØƒLØ
4Ô4r   r!   c                  óT   — e Zd ZU ded<   ded<   ded<   ded<   ded<   ded	<   d
ed<   y)ÚCommMessager   Úheaderr"   Úmsg_idÚmsg_typeÚparent_headerÚmetadatar!   r   zlist[memoryview]ÚbuffersNr   r   r   r   r&   r&   !   s(   … ØƒLàƒKØƒMØÓØƒNØ!Ó!ØÔr   r&   c                  ó$   — e Zd ZdZ	 	 	 	 	 	 dd„Zy)ÚMimeReprCallableaÛ  Protocol for _repr_mimebundle_.

    https://ipython.readthedocs.io/en/stable/config/integrating.html#more-powerful-methods

    > Should return a dictionary of multiple formats, keyed by mimetype, or a tuple of
    > two dictionaries: `data`, `metadata` (see Distribution metadata). If this returns
    > something, other `_repr_*_` methods are ignored. The method should take keyword
    > arguments `include` and `exclude`, though it is not required to respect them."
    c                 ó   — y ©Nr   )ÚselfÚincludeÚexcludes      r   Ú__call__zMimeReprCallable.__call__7   s   € ð $'r   N)r2   úSequence[str]r3   r5   Úreturnzdict | tuple[dict, dict])r   r   r   Ú__doc__r4   r   r   r   r.   r.   ,   s(   „ ñð'àð'ð ð'ð 
"ô	'r   r.   c                  ó   — e Zd ZU dZded<   y)ÚAnywidgetProtocolzEAnywidget classes have a MimeBundleDescriptor at `_repr_mimebundle_`.r   Ú_repr_mimebundle_N)r   r   r   r7   r   r   r   r   r9   r9   >   s   … ÙOà+Ô+r   r9   c                  ó(   — e Zd ZdZdd„Z	 	 	 	 dd„Zy)Ú
WidgetBasez0Widget subclasses with a custom message reducer.c                 ó   — y r0   r   )r1   Úmsgr,   s      r   ÚsendzWidgetBase.sendG   s   € È#r   c                 ó   — y r0   r   )r1   Úcallbacks     r   Úon_msgzWidgetBase.on_msgI   s   € ð r   N)r>   zstr | dict | listr,   zlist[bytes]r6   ÚNone)rA   z5Callable[[Any, str | list | dict, list[bytes]], None]r6   rC   )r   r   r   r7   r?   rB   r   r   r   r<   r<   D   s   „ Ù:ãMðàGðð 
ôr   r<   N)Ú
__future__r   Útypingr   r   r   Útyping_extensionsr   r   Úcollections.abcr	   r
   Ú_descriptorr   r   r   r   r!   r&   r.   r9   r<   r   r   r   Ú<module>rI      sz   ðÝ "ç .Ñ .ç 1áß2å1ô(�ô (ô%�yô %ô�ô ô
5˜9ô 5ô
�)ô ô'�xô 'ô$,˜ô ,ô�õ r   