mirror of https://github.com/pypa/pip
Fix type declarations. Mypy let me down :-(
This commit is contained in:
parent
64b3d1b278
commit
c7c319c4ed
|
@ -35,7 +35,7 @@ class ExplicitRequirement(Requirement):
|
|||
return self.candidate.name
|
||||
|
||||
def find_matches(self, constraint):
|
||||
# type: (Sequence[SpecifierSet]) -> Sequence[Candidate]
|
||||
# type: (SpecifierSet) -> Sequence[Candidate]
|
||||
if len(constraint) > 0:
|
||||
raise InstallationError(
|
||||
"Could not satisfy constraints for '{}': "
|
||||
|
@ -117,7 +117,7 @@ class RequiresPythonRequirement(Requirement):
|
|||
return self._candidate.name
|
||||
|
||||
def find_matches(self, constraint):
|
||||
# type: (Sequence[SpecifierSet]) -> Sequence[Candidate]
|
||||
# type: (SpecifierSet) -> Sequence[Candidate]
|
||||
assert len(constraint) == 0, \
|
||||
"RequiresPythonRequirement cannot have constraints"
|
||||
if self._candidate.version in self.specifier:
|
||||
|
|
Loading…
Reference in New Issue