(self, other)
| 27 | return cls._compare_key |
| 28 | |
| 29 | def __lt__(self, other) -> bool: |
| 30 | if self._compare_key is None: |
| 31 | raise ValueError("Compare key not set") |
| 32 | if self._order == "desc": |
| 33 | return self[self._compare_key] > other[self._compare_key] |
| 34 | return self[self._compare_key] < other[self._compare_key] |
| 35 | |
| 36 | |
| 37 | @dataclass |
nothing calls this directly
no outgoing calls
no test coverage detected