Skip to content

Commit 5eb9a32

Browse files
committed
refactor: Return NotImplemented from abstract __lt__
As recommended by the standard library <https://docs.python.org/3/library/constants.html#NotImplemented>.
1 parent a4fe4cd commit 5eb9a32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pystac/summaries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Comparable(Protocol):
3535

3636
@abstractmethod
3737
def __lt__(self: "T", x: "T") -> bool:
38-
pass
38+
return NotImplemented
3939

4040

4141
T = TypeVar("T", bound=Comparable)

0 commit comments

Comments
 (0)