
    ^h                     6    S r SSKJr  SSKJr   " S S\5      rg)zHPayload system for IPython.

Authors:

* Fernando Perez
* Brian Granger
    )Configurable)Listc                   :    \ rS rSr\" / 5      rSS jrS rS rSr	g)PayloadManager   c                 "   [        U[        5      (       d  [        SU-  5      eU(       aJ  SU;   aD  US   n[        U R                  5       H&  u  pESU;   d  M  US   U:X  d  M  XR                  U'     g   U R                  R                  U5        g)zInclude or update the specified `data` payload in the PayloadManager.

If a previous payload with the same source exists and `single` is True,
it will be overwritten with the new one.
z*Each payload write must be a dict, got: %rsourceN)
isinstancedict	TypeError	enumerate_payloadappend)selfdatasingler	   ipls         N/home/james-whalen/.local/lib/python3.13/site-packages/IPython/core/payload.pywrite_payloadPayloadManager.write_payload    s     $%%H4OPPh$&(^F"4==1r>blf&<'+MM!$ 2
 	T"    c                     U R                   $ Nr   r   s    r   read_payloadPayloadManager.read_payload3   s    }}r   c                     / U l         g r   r   r   s    r   clear_payloadPayloadManager.clear_payload6   s	    r   r   N)T)
__name__
__module____qualname____firstlineno__r   r   r   r   r    __static_attributes__ r   r   r   r      s    BxH#&r   r   N)__doc__traitlets.config.configurabler   	traitletsr   r   r'   r   r   <module>r+      s   & 7 \ r   