Skip to content

Commit 24e4cf7

Browse files
committed
Update comments and documentation
1 parent 901898c commit 24e4cf7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/pip/_internal/resolution/resolvelib/candidates.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,8 @@ class ExtrasCandidate(Candidate):
347347
to treat it as a separate node in the dependency graph.
348348
2. When we're getting the candidate's dependencies,
349349
a) We specify that we want the extra dependencies as well.
350-
b) We add a dependency on the base candidate (matching the name and
351-
version). See below for why this is needed.
350+
b) We add a dependency on the base candidate.
351+
See below for why this is needed.
352352
3. We return None for the underlying InstallRequirement, as the base
353353
candidate will provide it, and we don't want to end up with duplicates.
354354
@@ -417,7 +417,8 @@ def iter_dependencies(self):
417417
extra
418418
)
419419

420-
# Add a dependency on the exact base.
420+
# Add a dependency on the exact base
421+
# (See note 2b in the class docstring)
421422
yield factory.make_requirement_from_candidate(self.base)
422423

423424
for r in self.base.dist.requires(valid_extras):

0 commit comments

Comments
 (0)