관리-도구
편집 파일: direct_url.cpython-36.pyc
3 �Re� � @ s d Z ddlZddlZddlmZ ddlmZ ddlm Z e rhddl mZmZm Z mZmZmZmZ ed�ZdZejd �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-python36-pip-20.2.4-5.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/models/direct_url.pyr s c C sH || kr|S | | }t jr(|tkr(t j}t||�sDtdj|||���|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"