Skip to content

Commit 64d3fbd

Browse files
committed
fix mypy by correcting the __lt__ annotation
1 parent e909983 commit 64d3fbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pre_commit_hooks/requirements_txt_fixer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def name(self) -> bytes:
3636

3737
return name[:m.start()]
3838

39-
def __lt__(self, requirement: 'Requirement') -> int:
39+
def __lt__(self, requirement: 'Requirement') -> bool:
4040
# \n means top of file comment, so always return True,
4141
# otherwise just do a string comparison with value.
4242
assert self.value is not None, self.value

0 commit comments

Comments
 (0)