Skip to content

Commit 6350438

Browse files
committed
refactor: simplify ComparableTuple
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 1148165 commit 6350438

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cyclonedx/_internal/compare.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __lt__(self, other: Any) -> bool:
4242
return False
4343
if o is None:
4444
return True
45-
return s < o
45+
return bool(s < o)
4646
return False
4747

4848
def __gt__(self, other: Any) -> bool:
@@ -54,7 +54,7 @@ def __gt__(self, other: Any) -> bool:
5454
return True
5555
if o is None:
5656
return False
57-
return s > o
57+
return bool(s > o)
5858
return False
5959

6060

0 commit comments

Comments
 (0)