+
    &j%                     b    ^ RI HtHt ^ RIHtHt RR.t] ! R R]4      4       t]! R]R7      tR# )    )AnyTypeVar)Protocolruntime_checkableStateful	StatefulTc                   H   a  ] tR t^t o RtV 3R lR ltV 3R lR ltRtV tR# )r   zF
Stateful protocol for objects that can be checkpointed and restored.
c                6   < V ^8  d   QhRS[ S[S[3,          /# )   returndictstrr   )format__classdict__s   "}/Users/jameslopez/projects/CWCArchive/cwc-podcast/.venv/lib/python3.14/site-packages/torch/distributed/checkpoint/stateful.py__annotate__Stateful.__annotate__   s      DcN     c                    R# )ai  
Objects should return their state_dict representation as a dictionary.
The output of this function will be checkpointed, and later restored in
`load_state_dict()`.

.. warning::
    Because of the inplace nature of restoring a checkpoint, this function
    is also called during `torch.distributed.checkpoint.load`.


Returns:
    Dict: The objects state dict
N )selfs   &r   
state_dictStateful.state_dict   s     	r   c                :   < V ^8  d   QhRS[ S[S[3,          RR/# )r   r   r   Nr   )r   r   s   "r   r   r      s#      $sCx. T r   c                    R# )zp
Restore the object's state from the provided state_dict.

Args:
    state_dict: The state dict to restore from
Nr   )r   r   s   &&r   load_state_dictStateful.load_state_dict   s     	r   r   N)	__name__
__module____qualname____firstlineno____doc__r   r   __static_attributes____classdictcell__)r   s   @r   r   r      s      " r   )boundN)	typingr   r   typing_extensionsr   r   __all__r   r   r   r   r   <module>r*      sA     9 {
# x  B Kx0	r   