X7ROOT File Manager
Current Path:
/opt/cloudlinux/venv/lib/python3.11/site-packages/pip/_internal/models
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
pip
/
_internal
/
models
/
ðŸ“
..
📄
__init__.py
(63 B)
ðŸ“
__pycache__
📄
candidate.py
(753 B)
📄
direct_url.py
(6.42 KB)
📄
format_control.py
(2.43 KB)
📄
index.py
(1.01 KB)
📄
installation_report.py
(2.75 KB)
📄
link.py
(20.95 KB)
📄
scheme.py
(575 B)
📄
search_scope.py
(4.42 KB)
📄
selection_prefs.py
(1.97 KB)
📄
target_python.py
(4.17 KB)
📄
wheel.py
(4.43 KB)
Editing: candidate.py
from dataclasses import dataclass from pip._vendor.packaging.version import Version from pip._vendor.packaging.version import parse as parse_version from pip._internal.models.link import Link @dataclass(frozen=True) class InstallationCandidate: """Represents a potential "candidate" for installation.""" __slots__ = ["name", "version", "link"] name: str version: Version link: Link def __init__(self, name: str, version: str, link: Link) -> None: object.__setattr__(self, "name", name) object.__setattr__(self, "version", parse_version(version)) object.__setattr__(self, "link", link) def __str__(self) -> str: return f"{self.name!r} candidate (version {self.version} at {self.link})"
Upload File
Create Folder