Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions stdlib/_operator.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@ _K = TypeVar("_K")
_V = TypeVar("_V")
_P = ParamSpec("_P")

def lt(__a: Any, __b: Any) -> Any: ...
def le(__a: Any, __b: Any) -> Any: ...
def eq(__a: Any, __b: Any) -> Any: ...
def ne(__a: Any, __b: Any) -> Any: ...
def ge(__a: Any, __b: Any) -> Any: ...
def gt(__a: Any, __b: Any) -> Any: ...
# In theory, the comparison functions could return anything,
# but in the vast majority of cases,
# `x < y` will either evaluate to a boolean value, or throw an exception
def lt(__a: Any, __b: Any) -> bool: ...
def le(__a: Any, __b: Any) -> bool: ...
def eq(__a: Any, __b: Any) -> bool: ...
def ne(__a: Any, __b: Any) -> bool: ...
def ge(__a: Any, __b: Any) -> bool: ...
def gt(__a: Any, __b: Any) -> bool: ...
def not_(__a: Any) -> bool: ...
def truth(__a: Any) -> bool: ...
def is_(__a: Any, __b: Any) -> bool: ...
Expand Down