Skip to content

Typing

PartialLess

Bases: Protocol[T]

Represents types that implement the less operation (self < other) where other is of type T.

Source code in orderings/typing.py
28
29
30
31
32
33
34
35
@runtime_checkable
class PartialLess(Protocol[T]):
    """Represents types that implement the *less* operation (`self < other`)
    where `other` is of type `T`.
    """

    @required
    def __lt__(self, __other: T) -> bool: ...

Less

Bases: Protocol

Represents types that implement the less operation (self < other) where other is of type Self.

Source code in orderings/typing.py
38
39
40
41
42
43
44
45
@runtime_checkable
class Less(Protocol):
    """Represents types that implement the *less* operation (`self < other`)
    where `other` is of type `Self`.
    """

    @required
    def __lt__(self, __other: Self) -> bool: ...

PartialGreater

Bases: Protocol[T]

Represents types that implement the greater operation (self > other) where other is of type T.

Source code in orderings/typing.py
48
49
50
51
52
53
54
55
@runtime_checkable
class PartialGreater(Protocol[T]):
    """Represents types that implement the *greater* operation (`self > other`)
    where `other` is of type `T`.
    """

    @required
    def __gt__(self, __other: T) -> bool: ...

Greater

Bases: Protocol

Represents types that implement the greater operation (self > other) where other is of type Self.

Source code in orderings/typing.py
58
59
60
61
62
63
64
65
@runtime_checkable
class Greater(Protocol):
    """Represents types that implement the *greater* operation (`self > other`)
    where `other` is of type `Self`.
    """

    @required
    def __gt__(self, __other: Self) -> bool: ...

PartialStrictOrdered

Bases: PartialLess[T], PartialGreater[T], Protocol[T]

Represents types that implement both PartialLess[T] and PartialGreater[T] protocols.

Source code in orderings/typing.py
68
69
70
71
72
@runtime_checkable
class PartialStrictOrdered(PartialLess[T], PartialGreater[T], Protocol[T]):
    """Represents types that implement both [`PartialLess[T]`][orderings.typing.PartialLess]
    and [`PartialGreater[T]`][orderings.typing.PartialGreater] protocols.
    """

StrictOrdered

Bases: Less, Greater, Protocol

Represents types that implement both Less and Greater protocols.

Source code in orderings/typing.py
75
76
77
78
79
@runtime_checkable
class StrictOrdered(Less, Greater, Protocol):
    """Represents types that implement both [`Less`][orderings.typing.Less]
    and [`Greater`][orderings.typing.Greater] protocols.
    """

PartialLessOrEqual

Bases: Protocol[T]

Represents types that implement the less-or-equal operation (self <= other) where other is of type T.

Source code in orderings/typing.py
82
83
84
85
86
87
88
89
@runtime_checkable
class PartialLessOrEqual(Protocol[T]):
    """Represents types that implement the *less-or-equal* operation (`self <= other`)
    where `other` is of type `T`.
    """

    @required
    def __le__(self, __other: T) -> bool: ...

LessOrEqual

Bases: Protocol

Represents types that implement the less-or-equal operation (self <= other) where other is of type Self.

Source code in orderings/typing.py
92
93
94
95
96
97
98
99
@runtime_checkable
class LessOrEqual(Protocol):
    """Represents types that implement the *less-or-equal* operation (`self <= other`)
    where `other` is of type `Self`.
    """

    @required
    def __le__(self, __other: Self) -> bool: ...

PartialGreaterOrEqual

Bases: Protocol[T]

Represents types that implement the greater-or-equal operation (self >= other) where other is of type T.

Source code in orderings/typing.py
102
103
104
105
106
107
108
109
@runtime_checkable
class PartialGreaterOrEqual(Protocol[T]):
    """Represents types that implement the *greater-or-equal* operation (`self >= other`)
    where `other` is of type `T`.
    """

    @required
    def __ge__(self, __other: T) -> bool: ...

GreaterOrEqual

Bases: Protocol

Represents types that implement the greater-or-equal operation (self >= other) where other is of type Self.

Source code in orderings/typing.py
112
113
114
115
116
117
118
119
@runtime_checkable
class GreaterOrEqual(Protocol):
    """Represents types that implement the *greater-or-equal* operation (`self >= other`)
    where `other` is of type `Self`.
    """

    @required
    def __ge__(self, __other: Self) -> bool: ...

PartialLenientOrdered

Bases: PartialLessOrEqual[T], PartialGreaterOrEqual[T], Protocol[T]

Represents types that implement both PartialLessOrEqual[T] and PartialGreaterOrEqual[T] protocols.

Source code in orderings/typing.py
122
123
124
125
126
127
@runtime_checkable
class PartialLenientOrdered(PartialLessOrEqual[T], PartialGreaterOrEqual[T], Protocol[T]):
    """Represents types that implement both
    [`PartialLessOrEqual[T]`][orderings.typing.PartialLessOrEqual] and
    [`PartialGreaterOrEqual[T]`][orderings.typing.PartialGreaterOrEqual] protocols.
    """

LenientOrdered

Bases: LessOrEqual, GreaterOrEqual, Protocol

Represents types that implement both LessOrEqual and GreaterOrEqual protocols.

Source code in orderings/typing.py
130
131
132
133
134
@runtime_checkable
class LenientOrdered(LessOrEqual, GreaterOrEqual, Protocol):
    """Represents types that implement both [`LessOrEqual`][orderings.typing.LessOrEqual]
    and [`GreaterOrEqual`][orderings.typing.GreaterOrEqual] protocols.
    """

PartialOrdered

Bases: PartialStrictOrdered[T], PartialLenientOrdered[T], Protocol[T]

Represents types that implement both PartialStrictOrdered[T] and PartialLenientOrdered[T] protocols.

Source code in orderings/typing.py
137
138
139
140
141
142
@runtime_checkable
class PartialOrdered(PartialStrictOrdered[T], PartialLenientOrdered[T], Protocol[T]):
    """Represents types that implement both
    [`PartialStrictOrdered[T]`][orderings.typing.PartialStrictOrdered] and
    [`PartialLenientOrdered[T]`][orderings.typing.PartialLenientOrdered] protocols.
    """

Ordered

Bases: StrictOrdered, LenientOrdered, Protocol

Represents types that implement both StrictOrdered and LenientOrdered protocols.

Source code in orderings/typing.py
145
146
147
148
149
@runtime_checkable
class Ordered(StrictOrdered, LenientOrdered, Protocol):
    """Represents types that implement both [`StrictOrdered`][orderings.typing.StrictOrdered]
    and [`LenientOrdered`][orderings.typing.LenientOrdered] protocols.
    """