MCPcopy Create free account
hub / github.com/cxcscmu/Craw4LLM / __lt__

Method __lt__

corpus_interface.py:29–34  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected