o
    Í5÷dÕ  ã                   @   sd   d dl Zd dlmZmZmZmZ G dd„ deƒZdejj	dee fdd„Z
d	ejj	defd
d„ZdS )é    N)ÚAnyÚOptionalÚProtocolÚcastc                   @   s0   e Zd ZdZedefdd„ƒZeddd„ƒZdS )	ÚBasePatha‡  A protocol that various path objects conform.

    This exists because importlib.metadata uses both ``pathlib.Path`` and
    ``zipfile.Path``, and we need a common base for type hints (Union does not
    work well since ``zipfile.Path`` is too new for our linter setup).

    This does not mean to be exhaustive, but only contains things that present
    in both classes *that we need*.
    Úreturnc                 C   ó   t ƒ ‚©N©ÚNotImplementedError©Úself© r   úC:\Users\jesus\OneDrive\Desktop\erpjis_fastapi\backend\jisbackend\Lib\site-packages\pip/_internal/metadata/importlib/_compat.pyÚname   ó   zBasePath.namec                 C   r   r	   r
   r   r   r   r   Úparent   r   zBasePath.parentN)r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚpropertyÚstrr   r   r   r   r   r   r      s    
r   Údr   c                 C   s   t | ddƒS )a–  Find the path to the distribution's metadata directory.

    HACK: This relies on importlib.metadata's private ``_path`` attribute. Not
    all distributions exist on disk, so importlib.metadata is correct to not
    expose the attribute as public. But pip's code base is old and not as clean,
    so we do this to avoid having to rewrite too many things. Hopefully we can
    eliminate this some day.
    Ú_pathN)Úgetattr)r   r   r   r   Úget_info_location   s   	r   Údistc                 C   s   t t| ƒjS )z°Get the distribution's project name.

    The ``name`` attribute is only available in Python 3.10 or later. We are
    targeting exactly that, but Mypy does not know this.
    )r   r   r   )r   r   r   r   Úget_dist_name%   s   r   )Úimportlib.metadataÚ	importlibÚtypingr   r   r   r   r   ÚmetadataÚDistributionr   r   r   r   r   r   r   Ú<module>   s
    