관리-도구
편집 파일: _compat.cpython-38.pyc
U &?�f� � @ s� d dl Zd dlZd dlmZmZmZmZmZ d dl m Z mZ G dd� de�Z G dd� de�Zejjee d�d d �Zejjeee ee f d�dd �Zejje d�dd�ZdS )� N)�Any�Optional�Protocol�Tuple�cast)�NormalizedName�canonicalize_namec @ s0 e Zd Zejjedd�dd�Zed�dd�ZdS )�BadMetadataN)�dist�reason�returnc C s || _ || _d S �N�r r )�selfr r � r �V/opt/hc_python/lib/python3.8/site-packages/pip/_internal/metadata/importlib/_compat.py�__init__ s zBadMetadata.__init__�r c C s d| j � d| j� d�S )NzBad metadata in z (�)r �r r r r �__str__ s zBadMetadata.__str__) �__name__� __module__�__qualname__� importlib�metadata�Distribution�strr r r r r r r s r c @ s4 e Zd ZdZeed�dd��Zed d�dd��ZdS )�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*. r c C s t � �d S r ��NotImplementedErrorr r r r �name s z BasePath.namec C s t � �d S r r r r r r �parent s zBasePath.parentN)r r r �__doc__�propertyr r! r"