MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / __lt__

Method __lt__

tortoise/migrations/graph.py:32–35  ·  view source on GitHub ↗
(self, other: object)

Source from the content-addressed store, hash-verified

30 return self.key == other
31
32 def __lt__(self, other: object) -> bool:
33 if isinstance(other, Node):
34 return self.key < other.key
35 return self.key < other # type: ignore[operator]
36
37 def __hash__(self) -> int:
38 return hash(self.key)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected