§
    Ë²Å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dS )z"Utility for deprecating functions.é    N)ÚCallableÚTypeVar)Ú	ParamSpecÚ_TÚ_PÚsinceÚ
removed_inÚinstructionsÚreturnc                 ó€   ‡ ‡‡— 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        pd}t          j        d‰
› d‰	› d‰› d	�¦  «        }| 	                    d
d¦  «        }t          |¦  «        dk    r |\  }}t          j        |¦  «        }|d
||g}n|d         }|d
|g}d                     |¦  «        |_        |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     €€€€úHC:\Projects\Historical\venv\Lib\site-packages\torch/onnx/_deprecation.pyÚwrapperz.deprecated.<locals>.decorator.<locals>.wrapper   s–   ø€ åŒMðC�HÔ'ð Cð C¨(Ô*;ð Cð CØ,1ðCð Cà(ðCð Cà3?ðCð Cð Cõ 'Øðñ ô ð ð �8˜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ð 	-­b¬ið 	-½Bð 	-ð 	-ð 	-ð 	-ð 	-ð 	-ð 	-ð 	-ñ 
#Ô	"ð	-ð Ô$Ð*¨ˆ	õ $œ?ðØ"ðð à;Eðð ð %ðð ð ñ
ô 
Ðð %Ÿ?š?¨6°1Ñ5Ô5ÐåÐÑ Ô  1Ò$Ð$Ø,‰MˆG�Tõ ”? 4Ñ(Ô(ˆDà#3°V¸WÀdÐ"KÐÐà& qÔ)ˆGà#3°V¸WÐ"EÐàŸ'š'Ð"5Ñ6Ô6ˆŒàˆr   )r   r   r   )r   r	   r
   r/   s   ``` r   Ú
deprecatedr0      sV   øøø€ ð*�H¥R­ VÔ,ð *µ½"½b¸&Ô1Að *ð *ð *ð *ð *ð *ð *ð *ðX Ðr   )r#   r!   r$   r   Útypingr   r   Útyping_extensionsr   r   r   Ústrr0   © r   r   ú<module>r5      sÌ   ðØ (Ð (à Ð Ð Ð Ø €€€Ø €€€Ø $Ð $Ð $Ð $Ð $Ð $Ð $Ð $Ø 'Ð 'Ð 'Ð 'Ð 'Ð 'ð €WˆT�]„]€Ø€Yˆt�_„_€ð:Øð:Øð:Ø/2ð:àˆx˜˜B˜ÔÐ  (¨2¨r¨6Ô"2Ð2Ô3ð:ð :ð :ð :ð :ð :r   