+
    –°³j  ã                   ó.   € R t ^ RIHt ^ RIHt R R ltR# )z§
Utility functions for the experimental checkpoint module.

This module contains helper functions and utilities used across the experimental
checkpoint functionality.
)ÚFuture)ÚAnyc                ó>   € V ^8„  d   QhR\         R\        R,          /# )é   Úoriginal_resultÚreturnN)r   r   )Úformats   "Úq/home/luca/screen-checking/.venv/lib/python3.14/site-packages/torch/distributed/checkpoint/_experimental/utils.pyÚ__annotate__r
      s   € ÷ ñ ¤ð ¬°­ñ ó    c                ó¦   a a€ \        4       o\        S \         4      '       d   R VV 3R llpS P                  V4       S# SP                  R4       S# )aÈ  
Wraps a result (Future or not) to return a Future with None result.

If the input is a Future, returns a new Future that completes with None when
the original Future completes successfully, or propagates any exception.
If the input is not a Future, returns a completed Future with None result.

Args:
    original_result: The result to wrap (Future or any other value).

Returns:
    A Future that completes with None on success or propagates exceptions.
c                ó>   € V ^8„  d   QhR\         \        ,          RR/# )r   Ú_r   N)r   r   )r   s   "r	   r
   Ú!wrap_future.<locals>.__annotate__   s   € ÷ 	/ñ 	/œ6¤#�;ð 	/¨4ñ 	/r   c                 ó    <€  SP                  4        SP                  R 4       R #   \         d   pSP                  T4        R p?R # R p?ii ; i)N)ÚresultÚ
set_resultÚ	ExceptionÚset_exception)r   ÚeÚmasked_futurer   s   & €€r	   Úon_completeÚ wrap_future.<locals>.on_complete   sC   ø€ ð/Ø×&Ñ&Ô(Ø×(Ñ(¨Ö.øÜô /Ø×+Ñ+¨A×.Ò.ûð/ús   ƒ!& ¦A±AÁAN)r   Ú
isinstanceÚadd_done_callbackr   )r   r   r   s   f @r	   Úwrap_futurer      sQ   ù€ ô #)£(€Mä�/¤6×*Ò*÷	/ñ 	/ð 	×)Ñ)¨+Ô6ð
 Ðð 	× Ñ  Ô&àÐr   N)Ú__doc__Úconcurrent.futuresr   Útypingr   r   © r   r	   Ú<module>r       s   ðñõ &Ý ÷r   