
    }tf                        d dl mZ d dlmZmZmZmZ d dlmZm	Z	m
Z
 er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CallableSequence)LiteralProtocol	TypedDict   )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__     ^/var/www/html/software/conda/envs/higlass/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__5   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.sendC   s    #r   c                     y r0   r   )r1   callbacks     r   on_msgzWidgetBase.on_msgE   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<   @   s    :MM	r   r<   N)
__future__r   typingr   r   r   r   typing_extensionsr   r	   r
   _descriptorr   r   r   r   r!   r&   r.   r9   r<   r   r   r   <module>rH      sz    " 9 9 : :1( (%y % 
59 5
) 'x ' , , r   