OwlCyberSecurity - MANAGER
Edit File: criterion.cpython-311.pyc
� p�Fh� � �j � d dl mZ d dlmZmZmZmZ ddlmZm Z m Z G d� dee ef � � ZdS )� )�annotations)� Collection�Generic�Iterable�Iterator� )�CT�RT�RequirementInformationc �2 � e Zd ZdZdd �Zdd�Zdd�Zdd�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 �0 � || _ || _ || _ d S �N)r r r )�selfr r r s ��/builddir/build/BUILD/imunify360-venv-2.5.3/opt/imunify360/venv/lib/python3.11/site-packages/pip/_vendor/resolvelib/resolvers/criterion.py�__init__zCriterion.__init__ s! � � %���&���!2����� �strc �V � d� d� | j D � � � � }d|� d�S )Nz, c 3 �. K � | ]\ }}d |�d|�d�V � �dS )�(z, via=�)N� )�.0�req�parents r � <genexpr>z%Criterion.__repr__.<locals>.<genexpr>'