File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/pip/_internal/metadata/importlib/__pycache__/_compat.cpython-310.pyc
Back
o ;j� � @ s� d dl mZ d dlZd dlZd dlmZmZmZ d dl m Z mZ G dd� de�Z G dd� de�Zdd d�Zddd�Zddd�ZdS )� )�annotationsN)�Any�Protocol�cast)�NormalizedName�canonicalize_namec @ s e Zd Zddd�Zd d d �ZdS )�BadMetadata�dist�importlib.metadata.Distribution�reason�str�return�Nonec C s || _ || _d S �N�r r )�selfr r � r �\/opt/saltstack/salt/lib/python3.10/site-packages/pip/_internal/metadata/importlib/_compat.py�__init__ s zBadMetadata.__init__c C s d| j � d| j� d�S )NzBad metadata in z (�)r �r r r r �__str__ s zBadMetadata.__str__N)r r r r r r �r r )�__name__� __module__�__qualname__r r r r r r r s r c @ s, e Zd ZdZed dd��Zed 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 r c C � t � �r ��NotImplementedErrorr r r r �name � z BasePath.namec C r r r r r r r �parent"