File manager - Edit - /opt/cloudlinux/venv/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/__pycache__/provider.cpython-311.pyc
Back
� .|oi�, � �: � d dl mZ d dlZd dlmZmZmZmZ d dlm Z d dl mZmZ d dl mZ d dlmZ dd lmZmZmZ dd lmZ ddlmZ ddlmZ er"d d l mZ d dlmZ eeef Zeeeef Z neZ ed� � Z! ed� � Z"dd�Z# G d� de � � Z$dS )� )�annotationsN)�Iterable�Iterator�Mapping�Sequence)�cache)� TYPE_CHECKING�TypeVar)�AbstractProvider)�InstallRequirement� )� Candidate� Constraint�Requirement)�REQUIRES_PYTHON_IDENTIFIER)�Factory)�ExplicitRequirement)� Preference)�RequirementInformation�D�V�mapping�Mapping[str, V]� identifier�str�default�return�D | Vc �l � || v r| | S |� d� � \ }}}|r|| v r| | S |S )ai Get item from a package name lookup mapping with a resolver identifier. This extra logic is needed when the target mapping is keyed by package name, which cannot be directly looked up with an identifier (which may contain requested extras). Additional logic is added to also look up a value by "cleaning up" the extras from the identifier. �[)� partition)r r r �name�open_bracket�_s �~/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/provider.py�_get_with_identifierr&