+
    &j                     >    ^ RI HtHt ^ RIt] ! R R]4      4       tR# )    )Protocolruntime_checkableNc                   Z   a  ] tR t^t o RtV 3R lR ltV 3R lR ltV 3R lR ltRtV t	R	# )
_Checkpointablea  
Interface for checkpointable objects.
Implemented as a protocol, implicit subtyping is supported so subclasses do not need to inherit this explicitly.
This is to allow arbitrary objects/tensor subclasses to hook into DCP seamlessly through implementing the interface.
c                <   < V ^8  d   QhRS[ RS[RS[S[,          /# )   fqnobjectreturn)strr
   list)format__classdict__s   "y/Users/jameslopez/projects/CWCArchive/cwc-podcast/.venv/lib/python3.14/site-packages/torch/distributed/_checkpointable.py__annotate___Checkpointable.__annotate__   s&     
 
# 
v 
$v, 
    c                    \        R4      h)z9
Return a list of WriteItems based on object's contents.
z6_Checkpointable._create_write_items is not implementedNotImplementedError)selfr	   r
   s   &&&r   __create_write_items__&_Checkpointable.__create_write_items__   s     "D
 	
r   c                0   < V ^8  d   QhRS[ S[,          /# )r   r   )r   r
   )r   r   s   "r   r   r      s     
 
tF| 
r   c                    \        R4      h)zE
Return a list of `ChunkStorageMetadata` based on object's contents.
z5_Checkpointable._create_chunk_list is not implementedr   )r   s   &r   __create_chunk_list__%_Checkpointable.__create_chunk_list__   s     "C
 	
r   c                :   < V ^8  d   QhRS[ RS[P                  /# )r   indexr   )inttorchTensor)r   r   s   "r   r   r      s     
 
# 
%,, 
r   c                    \        R4      h)z9
Return a 'torch.Tensor' shard based on 'MetadataIndex'.
z4_Checkpointable._get_tensor_shard is not implementedr   )r   r   s   &&r   __get_tensor_shard__$_Checkpointable.__get_tensor_shard__   s     "B
 	
r    N)
__name__
__module____qualname____firstlineno____doc__r   r   r$   __static_attributes____classdictcell__)r   s   @r   r   r      s(     
 

 

 
r   r   )typing_extensionsr   r   r!   r   r&   r   r   <module>r/      s&    9  
h 
 
r   