Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
pip._internal.resolution.resolvelib.base Namespace Reference

Data Structures

class  Candidate
 
class  Constraint
 
class  Requirement
 

Functions

str format_name (str project, FrozenSet[str] extras)
 
bool _match_link (Link link, "Candidate" candidate)
 

Variables

 CandidateLookup = Tuple[Optional["Candidate"], Optional[InstallRequirement]]
 
 CandidateVersion = Union[LegacyVersion, Version]
 

Function Documentation

◆ _match_link()

bool _match_link ( Link  link,
"Candidate"  candidate 
)
protected

Definition at line 92 of file base.py.

92def _match_link(link: Link, candidate: "Candidate") -> bool:
94 return links_equivalent(link, candidate.source_link)
95 return False
96
97
for i

References i.

Referenced by Constraint.is_satisfied_by().

Here is the caller graph for this function:

◆ format_name()

str format_name ( str  project,
FrozenSet[str]  extras 
)

Definition at line 15 of file base.py.

15def format_name(project: str, extras: FrozenSet[str]) -> str:
16 if not extras:
17 return project
18 canonical_extras = sorted(canonicalize_name(e) for e in extras)
19 return "{}[{}]".format(project, ",".join(canonical_extras))
20
21

Variable Documentation

◆ CandidateLookup

CandidateLookup = Tuple[Optional["Candidate"], Optional[InstallRequirement]]

Definition at line 11 of file base.py.

◆ CandidateVersion

CandidateVersion = Union[LegacyVersion, Version]

Definition at line 12 of file base.py.