
    g                     :    S SK r S SKr " S S\5      rS rSS jrg)    Nc                       \ rS rSrSrSrg)ObsoleteException   z0Base class for warnings about obsolete features. N)__name__
__module____qualname____firstlineno____doc____static_attributes__r       \/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/base/obsolete.pyr   r      s    :r   r   c                 F   ^  [         R                  " T 5      U 4S j5       nU$ )zThis is a decorator which can be used to mark Client classes as
obsolete. It will result in an error being emitted when the class is
instantiated.c                  L   > [        SR                  TR                  5      5      e)Nzi{} has been removed from this version of the library. Please refer to current documentation for guidance.)r   formatr   )argskwargsfuncs     r   new_func!obsolete_client.<locals>.new_func   s$    BBH&BW
 	
r   	functoolswraps)r   r   s   ` r   obsolete_clientr   	   s'    
 __T
 
 Or   c                 D   ^  U 4S jn[        T 5      (       a  U" T 5      $ U$ )z
This is a decorator which can be used to mark deprecated methods.
It will report in a DeprecationWarning being emitted to stderr when the deprecated method is used.
c                 J   >^  [         R                  " T 5      U U4S j5       nU$ )Nc                     > SR                  TR                  5      nU[        T[        5      (       a  SR                  T5      OS-  n[        R
                  " U[        5        T" U 0 UD6$ )Nz#Function method .{}() is deprecatedz in favor of .{}() )r   r   
isinstancestrwarningswarnDeprecationWarning)r   r   msgr   r   s      r   wrapperEdeprecated_method.<locals>.deprecated_method_wrapper.<locals>.wrapper   sb    7>>t}}MCh,, %++H5C
 MM#12(((r   r   )r   r%   r   s   ` r   deprecated_method_wrapper4deprecated_method.<locals>.deprecated_method_wrapper   s%    			) 
	) r   )callable)r   r'   s   ` r   deprecated_methodr*      s&     (22$$r   )N)r!   r   	Exceptionr   r   r*   r   r   r   <module>r,      s!     ;	 ;%r   