Skip to content

Commit 96b3377

Browse files
committed
Type annotations
1 parent 9cf1bed commit 96b3377

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def iter_found_candidates(self, ireq, extras):
120120
# requirement needs to return only one candidate per version, so we
121121
# implement that logic here so that requirements using this helper
122122
# don't all have to do the same thing later.
123-
seen_versions = set()
123+
seen_versions = set() # type: Set[_BaseVersion]
124124

125125
# Yield the installed version, if it matches, unless the user
126126
# specified `--force-reinstall`, when we want the version from

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def resolve(self, root_reqs, check_supported_wheels):
6969
# type: (List[InstallRequirement], bool) -> RequirementSet
7070

7171
constraints = {} # type: Dict[str, SpecifierSet]
72-
user_requested = set()
72+
user_requested = set() # type: Set[str]
7373
requirements = []
7474
for req in root_reqs:
7575
if req.constraint:

0 commit comments

Comments
 (0)