Current Path: > > opt > hc_python > lib64 > python3.12 > site-packages > pip > _vendor > resolvelib > resolvers >
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__pycache__ | Directory | - | - | |
__init__.py | File | 640 bytes | May 23 2025 10:34:25. | |
abstract.py | File | 1558 bytes | May 23 2025 10:34:25. | |
criterion.py | File | 1768 bytes | May 23 2025 10:34:25. | |
exceptions.py | File | 1768 bytes | May 23 2025 10:34:25. | |
resolution.py | File | 20671 bytes | May 23 2025 10:34:25. |
from __future__ import annotations from typing import Collection, Generic, Iterable, Iterator from ..structs import CT, RT, RequirementInformation class Criterion(Generic[RT, CT]): """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. """ def __init__( self, candidates: Iterable[CT], information: Collection[RequirementInformation[RT, CT]], incompatibilities: Collection[CT], ) -> None: self.candidates = candidates self.information = information self.incompatibilities = incompatibilities def __repr__(self) -> str: requirements = ", ".join( f"({req!r}, via={parent!r})" for req, parent in self.information ) return f"Criterion({requirements})" def iter_requirement(self) -> Iterator[RT]: return (i.requirement for i in self.information) def iter_parent(self) -> Iterator[CT | None]: return (i.parent for i in self.information)
SILENT KILLER Tool