MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / __lt__

Method __lt__

data_structures/heap/heap.py:10–11  ·  view source on GitHub ↗
(self: T, other: T)

Source from the content-addressed store, hash-verified

8class Comparable(Protocol):
9 @abstractmethod
10 def __lt__(self: T, other: T) -> bool:
11 pass
12
13 @abstractmethod
14 def __gt__(self: T, other: T) -> bool:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected