Ë
    Q/æjà  ã                   ó”   — d Z ddlZddlZddlZddlmZmZ ddlmZ  ed«      Z	 ed«      Z
deded	ed
eee
e	f   gee
e	f   f   fd„Zy)z"Utility for deprecating functions.é    N)ÚCallableÚTypeVar)Ú	ParamSpecÚ_TÚ_PÚsinceÚ
removed_inÚinstructionsÚreturnc                 óh   ‡ ‡‡— dt         t        t        f   dt         t        t        f   fˆˆˆ fd„}|S )aF  Marks functions as deprecated.

    It will result in a warning when the function is called and a note in the
    docstring.

    Args:
        since: The version when the function was first deprecated.
        removed_in: The version when the function will be removed.
        instructions: The action users should take.
    Úfunctionr   c           	      ó¸  •‡ — t        j                  ‰ «      dt        j                  dt        j                  dt
        fˆ ˆˆ	ˆ
fd„«       }‰ j                  xs d}t        j                  d‰
› d‰	› d‰› d	�«      }|j                  d
d«      }t        |«      dkD  r!|\  }}t        j                  |«      }|d
||g}n
|d   }|d
|g}dj                  |«      |_        |S )NÚargsÚkwargsr   c                  ó”   •— t        j                  d‰j                  › d‰j                  › d‰› d‰› d‰› d�t        d¬«        ‰| i |¤ŽS )Nú'ú.z' is deprecated in version z and will be removed in z	. Please é   )ÚcategoryÚ
stacklevel)ÚwarningsÚwarnÚ
__module__Ú__name__ÚFutureWarning)r   r   r   r
   r	   r   s     €€€€úZ/root/repos/pocs/video-evals/.venv/lib/python3.12/site-packages/torch/onnx/_deprecation.pyÚwrapperz.deprecated.<locals>.decorator.<locals>.wrapper   sf   ø€ ä�M‰MØ�H×'Ñ'Ð(¨¨(×*;Ñ*;Ð)<ð =,Ø,1¨7ð 3Ø(˜\¨°<°.ÀðCô 'Øõñ ˜TÐ, VÑ,Ð,ó    Ú z            .. deprecated:: z;
                Deprecated and will be removed in version z.
                Please z.
            z

é   r   )Ú	functoolsÚwrapsr   r   r   r   Ú__doc__ÚtextwrapÚdedentÚsplitÚlenÚjoin)r   r   Ú	docstringÚdeprecation_noteÚsummary_and_bodyÚsummaryÚbodyÚnew_docstring_partsr
   r	   r   s   `       €€€r   Ú	decoratorzdeprecated.<locals>.decorator   sý   ù€ Ü	�‰˜Ó	"ð	-œ2Ÿ7™7ð 	-¬b¯i©ið 	-¼B÷ 	-ó 
#ð	-ð ×$Ñ$Ò*¨ˆ	ô $Ÿ?™?ðØ"˜Gð $;Ø;E¸,ð GØ$�~ð &ðó
Ðð %Ÿ?™?¨6°1Ó5ÐäÐÓ  1Ò$Ø,‰MˆG�Tô —?‘? 4Ó(ˆDà#3°V¸WÀdÐ"KÑà& qÑ)ˆGà#3°V¸WÐ"EÐàŸ'™'Ð"5Ó6ˆŒàˆr   )r   r   r   )r   r	   r
   r/   s   ``` r   Ú
deprecatedr0      s1   ú€ ð*œH¤R¬ VÑ,ð *´¼"¼b¸&Ñ1A÷ *ðX Ðr   )r#   r!   r$   r   Útypingr   r   Útyping_extensionsr   r   r   Ústrr0   © r   r   ú<module>r5      so   ðÙ (ã Û Û ß $Ý 'ñ ˆTƒ]€Ùˆtƒ_€ð:Øð:Øð:Ø/2ð:àˆx˜˜B˜ÑÐ  (¨2¨r¨6Ñ"2Ð2Ñ3ô:r   