fix mypy by correcting the __lt__ annotation

This commit is contained in:
Anthony Sottile 2020-11-16 10:41:32 -08:00
parent e90998353b
commit 64d3fbd5cf
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class Requirement:
return name[:m.start()]
def __lt__(self, requirement: 'Requirement') -> int:
def __lt__(self, requirement: 'Requirement') -> bool:
# \n means top of file comment, so always return True,
# otherwise just do a string comparison with value.
assert self.value is not None, self.value