mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 03:26:53 +00:00
fix mypy by correcting the __lt__ annotation
This commit is contained in:
parent
e90998353b
commit
64d3fbd5cf
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ class Requirement:
|
||||||
|
|
||||||
return name[:m.start()]
|
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,
|
# \n means top of file comment, so always return True,
|
||||||
# otherwise just do a string comparison with value.
|
# otherwise just do a string comparison with value.
|
||||||
assert self.value is not None, self.value
|
assert self.value is not None, self.value
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue