class documentation

class PriorityComparable(Protocol): (source)

Known subclasses: fritter.tree._Deltable

View In Hierarchy

Protocol describing an object that can be compared for the purposes of a PriorityQueue.

Method __le__ Is self lower or the same priority as other?
Method __lt__ Is self lower priority than other?
def __le__(self, other: Any) -> bool: (source)

Is self lower or the same priority as other?

def __lt__(self, other: Any) -> bool: (source)

Is self lower priority than other?