관리-도구
편집 파일: direct_url.cpython-37.pyc
B ��Re� � @ s d Z ddlZddlZddlmZ ddlmZ ddlm Z e rhddl mZmZm Z mZmZmZmZ ed�ZdZe�d �Zd ddd dgZG dd� de�Zddd�Zddd�Zdd� Zdd� ZG dd� de�ZG dd � d e�ZG dd� de�Z e r�eee ef Z!G dd � d e�Z"dS )z PEP 610 � N)�six)�parse)�MYPY_CHECK_RUNNING)�Any�Dict�Iterable�Optional�Type�TypeVar�Union�Tzdirect_url.jsonz.^\$\{[A-Za-z0-9-_]+\}(:\$\{[A-Za-z0-9-_]+\})?$� DirectUrl�DirectUrlValidationError�DirInfo�ArchiveInfo�VcsInfoc @ s e Zd ZdS )r N)�__name__� __module__�__qualname__� r r ��/builddir/build/BUILDROOT/alt-python37-pip-20.2.4-6.el8.x86_64/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/models/direct_url.pyr s c C sH || kr|S | | }t jr(|tkr(t j}t||�sDtd�|||���|S )z3Get value from dictionary and verify expected type.z-{!r} has unexpected type for {} (expected {}))r �PY2�str�string_types� isinstancer �format)�d� expected_type�key�default�valuer r r �_get"