Ë
    »ÿæip  ã                  óÌ   — 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„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y)ÚPipDeprecationWarningN)Ú__name__Ú
__module__Ú__qualname__© ó    út/Volumes/fast/ai/experiments/voice-extract-mac/.venv/lib/python3.12/site-packages/pip/_internal/utils/deprecation.pyr	   r	      s   „ Ør   r	   r   Ú_original_showwarningc                óÆ   — |�t         �t        | |||||«       y y t        |t        «      r't        j                  d«      }|j                  | «       y t        | |||||«       y )Nzpip._internal.deprecations)r   Ú
issubclassr	   ÚloggingÚ	getLoggerÚwarning)ÚmessageÚcategoryÚfilenameÚlinenoÚfileÚlineÚloggers          r   Ú_showwarningr      sc   € ð ÐÜ Ð,Ü! '¨8°X¸vÀtÈTÕRð -ä	�HÔ3Ô	4ô ×"Ñ"Ð#?Ó@ˆØ�‰�wÕä˜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$   .   s6   € ä×Ñ˜)Ô%:À4ÕHô Ð$Ü (× 4Ñ 4ÐÜ+ŒÕð %r   )Úfeature_flagÚissuec                ó  — |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        j                  |t        d
¬«       y)a   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.
    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>t   s3   è ø€ ð á!.ÑˆE�:ØÐ! eÐ&7ð 	×Ñ˜%× Ù!.ùs   ‚"$é   )r   Ú
stacklevel)r   Úcurrent_versionÚDEPRECATION_MSG_PREFIXÚjoinr	   r!   Úwarn)ÚreasonÚreplacementÚgone_inr%   r&   Úis_goneÚmessage_partsr   s           r   Ú
deprecatedr:   9   sÀ   € ð: ˜TÐ!ÒN¤e¬OÓ&<ÄÀgÃÑ&N€Gð 
Ô*Ð+¨4Ð0Ð1àñ ñ =àAð	
ð Ø+ð	
ð
 ñ ñ Xàð	
ð ØNð	
ð-€Mð8 �h‰hñ á!.óó €Gñ Ü# GÓ,Ð,ä‡M�M�'Ô$9ÀaÖHr   )NN)r   zWarning | strr   ztype[Warning]r   Ústrr   Úintr   zTextIO | Noner   ú
str | NoneÚreturnÚNone)r>   r?   )r5   r;   r6   r=   r7   r=   r%   r=   r&   z
int | Noner>   r?   )Ú__doc__Ú
__future__r   r   r!   Útypingr   r   Úpip._vendor.packaging.versionr   Úpipr   r1   r2   ÚWarningr	   r   Ú__annotations__r   r$   r:   r   r   r   Ú<module>rG      sî   ðòõ #ã Û ß å /å .à(Ð ô	˜Gô 	ð "Ð �sÓ !ð ØðOØðOàðOð ðOð ð	Oð
 ðOð ðOð 
óOó(,ð   $ØñEIàðEIð ðEIð ð	EIð
 ðEIð ðEIð 
ôEIr   