Ë
    ”U.jß  ã                  óØ   — U d Z ddlmZ ddlZddlZddlmZmZ ddlm	Z	 ddl
mZ dZ G d„ d	e«      Zdad
ed<   	 	 d	 	 	 	 	 	 	 	 	 	 	 	 	 dd„Zdd„Zdddddœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„Zy)zN
A module that implements tooling to enable easy warnings about deprecations.
é    )ÚannotationsN)ÚAnyÚTextIO)Úparse)Ú__version__zDEPRECATION: c                  ó   — e Zd ZU dZded<   y)ÚPipDeprecationWarningFÚboolÚinclude_sourceN)Ú__name__Ú
__module__Ú__qualname__r   Ú__annotations__© ó    úaC:\xampp\htdocs\tradingbinance\backend\.venv\Lib\site-packages\pip/_internal/utils/deprecation.pyr	   r	      s   … Ø €N�DÔ r   r	   r   Ú_original_showwarningc                ó(  — |�t         �t        | |||||«       y y t        |t        «      rXt        j                  d«      }t        | t        «      r!| j                  r|j                  d| ||«       y |j                  | «       y t        | |||||«       y )Nzpip._internal.deprecationsz
%s (%s:%s))r   Ú
issubclassr	   ÚloggingÚ	getLoggerÚ
isinstancer   Úwarning)ÚmessageÚcategoryÚfilenameÚlinenoÚfileÚlineÚloggers          r   Ú_showwarningr!      sˆ   € ð ÐÜ Ð,Ü! '¨8°X¸vÀtÈTÕRð -ä	�HÔ3Ô	4ô ×"Ñ"Ð#?Ó@ˆÜ�gÔ4Ô5¸'×:PÒ:PØ�N‰N˜<¨°(¸FÕCà�N‰N˜7Õ#ä˜g x°¸6À4ÈÕNr   c                 óˆ   — t        j                  dt        d¬«       t        € t         j                  at
        t         _        y y )NÚdefaultT)Úappend)ÚwarningsÚsimplefilterr	   r   Úshowwarningr!   r   r   r   Úinstall_warning_loggerr(   1   s6   € ä×Ñ˜)Ô%:À4ÕHô Ð$Ü (× 4Ñ 4ÐÜ+ŒÕð %r   é   F)Úfeature_flagÚissueÚ
stacklevelr   c                ó"  — |duxr t        t        «      t        |«      k\  }| t        › d�f||sdndf|df||sdndf|dfg}dj                  d	„ |D «       «      }	|rt	        |	«      ‚t	        |	«      }
||
_        t        j                  |
|¬
«       y)a2  Helper to deprecate existing functionality.

    reason:
        Textual reason shown to the user about why this functionality has
        been deprecated. Should be a complete sentence.
    replacement:
        Textual suggestion shown to the user about what alternative
        functionality they can use.
    gone_in:
        The version of pip does this functionality should get removed in.
        Raises an error if pip's current version is greater than or equal to
        this.
    feature_flag:
        Command-line flag of the form --use-feature={feature_flag} for testing
        upcoming functionality.
    issue:
        Issue number on the tracker that would serve as a useful place for
        users to find related discussion and provide feedback.
    stacklevel:
        How many frames up the call stack to attribute the warning to.
        Defaults to 2 (the caller of deprecated()).
    include_source:
        If True, include the source filename and line number in the warning
        output. Useful when the warning originates from external code.
    Nz{}z*pip {} will enforce this behaviour change.z*Since pip {}, this is no longer supported.zA possible replacement is {}.zEYou can use the flag --use-feature={} to test the upcoming behaviour.z@Discussion can be found at https://github.com/pypa/pip/issues/{}Ú c              3  óL   K  — | ]  \  }}|�|�|j                  |«      –— Œ y ­w)N)Úformat)Ú.0ÚvalueÚ
format_strs      r   Ú	<genexpr>zdeprecated.<locals>.<genexpr>   s3   è ø€ ð á!.ÑˆE�:ØÐ! eÐ&7ð 	×Ñ˜%× Ù!.ùs   ‚"$)r,   )r   Úcurrent_versionÚDEPRECATION_MSG_PREFIXÚjoinr	   r   r%   Úwarn)ÚreasonÚreplacementÚgone_inr*   r+   r,   r   Úis_goneÚmessage_partsr   r   s              r   Ú
deprecatedr>   <   sÐ   € ðJ ˜TÐ!ÒN¤e¬OÓ&<ÄÀgÃÑ&N€Gð 
Ô*Ð+¨4Ð0Ð1àñ ñ =àAð	
ð Ø+ð	
ð
 ñ ñ Xàð	
ð ØNð	
ð-€Mð8 �h‰hñ á!.óó €Gñ Ü# GÓ,Ð,ä# GÓ,€GØ+€GÔÜ‡M�M�' jÖ1r   )NN)r   zWarning | strr   ztype[Warning]r   Ústrr   Úintr   zTextIO | Noner   ú
str | NoneÚreturnÚNone)rB   rC   )r9   r?   r:   rA   r;   rA   r*   rA   r+   z
int | Noner,   r@   r   r
   rB   rC   )Ú__doc__Ú
__future__r   r   r%   Útypingr   r   Úpip._vendor.packaging.versionr   Úpipr   r5   r6   ÚWarningr	   r   r   r!   r(   r>   r   r   r   Ú<module>rJ      s  ðòõ #ã Û ß å /å .à(Ð ô!˜Gô !ð "Ð �sÓ !ð ØðOØðOàðOð ðOð ð	Oð
 ðOð ðOð 
óOó.,ð   $ØØØ ñO2àðO2ð ðO2ð ð	O2ð
 ðO2ð ðO2ð ðO2ð ðO2ð 
ôO2r   