File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers/__pycache__/criterion.cpython-310.pyc
Back
o ;j� � @ sT d dl mZ d dlmZmZmZmZ ddlmZm Z m Z G dd� dee ef �ZdS )� )�annotations)� Collection�Generic�Iterable�Iterator� )�CT�RT�RequirementInformationc @ s8 e Zd ZdZdd d�Zdd d�Zddd�Zddd�ZdS )� CriterionaQ Representation of possible resolution results of a package. This holds three attributes: * `information` is a collection of `RequirementInformation` pairs. Each pair is a requirement contributing to this criterion, and the candidate that provides the requirement. * `incompatibilities` is a collection of all known not-to-work candidates to exclude from consideration. * `candidates` is a collection containing all possible candidates deducted from the union of contributing requirements and known incompatibilities. It should never be empty, except when the criterion is an attribute of a raised `RequirementsConflicted` (in which case it is always empty). .. note:: This class is intended to be externally immutable. **Do not** mutate any of its attribute containers. � candidates�Iterable[CT]�information�*Collection[RequirementInformation[RT, CT]]�incompatibilities�Collection[CT]�return�Nonec C s || _ || _|| _d S �N)r r r )�selfr r r � r �^/opt/saltstack/salt/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers/criterion.py�__init__ s zCriterion.__init__�strc C s"