o
    ~îj  ã                   @  sh   d Z ddlmZ ddlmZ ddlmZ ddlmZ er"ddl	m
Z
 G dd„ deƒZG d	d
„ d
eƒZdS )z!Uninstall-related pip exceptions.é    )Úannotations)ÚTYPE_CHECKING)ÚText)ÚDiagnosticPipError)ÚBaseDistributionc                      ó"   e Zd ZdZd‡ fdd„Z‡  ZS )	ÚUninstallMissingRecordzuninstall-no-record-fileÚdistributionr   ÚreturnÚNonec                  sv   |j }|r	|dkr|j› d|j› �}t dd|› �df¡}ntd|› d�ƒ}tƒ jtd|› �ƒd	|j› d
�|d� d S )NÚpipz==z,You might be able to recover from this via: z)pip install --ignore-installed --no-deps ÚgreenzThe package was installed by z3. You should check if it can uninstall the package.úCannot uninstall zAThe package's contents are unknown: no RECORD file was found for Ú.©ÚmessageÚcontextÚ	hint_stmt)Ú	installerÚraw_nameÚversionr   ÚassembleÚsuperÚ__init__)Úselfr	   r   ÚdepÚhint©Ú	__class__© úl/raid/bulk_storage/M2HATS/real-image-venv/lib/python3.10/site-packages/pip/_internal/exceptions/uninstall.pyr      s"   þ
ÿÿ
úzUninstallMissingRecord.__init__©r	   r   r
   r   ©Ú__name__Ú
__module__Ú__qualname__Ú	referencer   Ú__classcell__r   r   r   r    r      ó    r   c                      r   )	ÚLegacyDistutilsInstallz%uninstall-distutils-installed-packager	   r   r
   r   c                  s    t ƒ jtd|› �ƒdd d� d S )Nr   z’It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.r   )r   r   r   )r   r	   r   r   r    r   -   s
   
ùzLegacyDistutilsInstall.__init__r!   r"   r   r   r   r    r)   *   r(   r)   N)Ú__doc__Ú
__future__r   Útypingr   Úpip._vendor.rich.textr   Úpip._internal.exceptions._baser   Úpip._internal.metadatar   r   r)   r   r   r   r    Ú<module>   s    