
    <Цi                         S r SSKrSSKrSSKrSSKJrJr  SSKJr  \" S5      r	\" S5      r
S\S\S	\S
\\\
\	4   /\\
\	4   4   4S jrg)z"Utility for deprecating functions.    N)CallableTypeVar)	ParamSpec_T_Psince
removed_ininstructionsreturnc                 l   ^ ^^ S[         [        [        4   S[         [        [        4   4UUU 4S jjnU$ )a*  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           	        >^  [         R                  " T 5      S[        R                  S[        R                  S[
        4U UU	U
4S jj5       nT R                  =(       d    Sn[        R                  " ST
 ST	 ST S	35      nUR                  S
S5      n[        U5      S:  a   Uu  pV[        R                  " U5      nUS
XV/nO
US   nUS
U/nSR                  U5      Ul        U$ )Nargskwargsr   c                     > [         R                  " STR                   STR                   ST ST ST S3[        SS9  T" U 0 UD6$ )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     V/var/www/html/ai-image-ml/venv/lib/python3.13/site-packages/torch/onnx/_deprecation.pywrapper.deprecated.<locals>.decorator.<locals>.wrapper   sf    MMH''((*;*;)< =,,17 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   	decoratordeprecated.<locals>.decorator   s    		"	-277 	-bii 	-B 	- 	- 
#	- $$*	 $??"G $;;E, G$~ &
 %??615 1$,MG ??4(D#3VW"K&q)G#3VW"E''"56r   )r   r   r   )r   r	   r
   r0   s   ``` r   
deprecatedr2      s6    *HRV, *"b&1A * *X r   )r$   r"   r%   r   typingr   r   typing_extensionsr   r   r   strr2    r   r   <module>r7      so    (    $ ' T]t_:::/2:xB (2r6"223:r   