
     Ti	              
           S r SSKrSSKrSSKrSSKJrJr  \" S5      r\R                  " SS9S\	4S j5       r
S	\	S
\	S\	S\\/\4   4S jrg)zUtility for deprecating APIs.    N)CallableTypeVarTi   )maxsizemessagec                 8    [         R                  " U [        SS9  g)z,Issue a FutureWarning only once per message.   )category
stacklevelN)warningswarnFutureWarning)r   s    _/var/www/html/ai-image-ml/venv/lib/python3.13/site-packages/onnxscript/_internal/deprecation.py
_warn_oncer      s     MM'Ma@    since
removed_ininstructionsreturnc                    ^ ^^ UUU 4S jnU$ )av  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.

Returns:
    A decorator that can be used to mark functions as deprecated.
c           	      z  >^  [         R                  " T 5      U UU	U
4S 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$ )
Nc                  r   > [        STR                   STR                   ST ST ST S35        T" U 0 UD6$ )N'.z' is deprecated in version z and will be removed in z	. Please )r   
__module____qualname__)argskwargsfunctionr   r   r   s     r   wrapper.deprecated.<locals>.decorator.<locals>.wrapper%   s[    H''((*?*?)@ A,,17 3(\<.C
 T,V,,r    z            .. deprecated:: z;
                Deprecated and will be removed in version z.
                Please z.
            z

   r   )	functoolswraps__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    		"	- 
#	- $$*	 $??"G $;;E, G$~ &
 %??615 1$,MG ??4(D#3VW"K&q)G#3VW"E''"56r    )r   r   r   r2   s   ``` r   
deprecatedr5      s    (T r   )r&   r$   r'   r   typingr   r   r   	lru_cachestrr   r5   r4   r   r   <module>r9      sw    $    $CL T"A A #A
9c 9s 9# 9(A3PQ6BR 9r   