summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/__init__.pyi8
1 files changed, 8 insertions, 0 deletions
diff --git a/numpy/__init__.pyi b/numpy/__init__.pyi
index e744a15c6..829ba82e1 100644
--- a/numpy/__init__.pyi
+++ b/numpy/__init__.pyi
@@ -1507,6 +1507,8 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType, _DType_co]):
@overload
def __lt__(self: _ArrayND[object_], other: Any) -> _ArrayOrScalar[bool_]: ...
@overload
+ def __lt__(self: _ArrayND[Any], other: _ArrayLikeObject_co) -> _ArrayOrScalar[bool_]: ...
+ @overload
def __lt__(
self: _ArrayND[Union[number[Any], datetime64, timedelta64, bool_]],
other: _RecursiveSequence,
@@ -1523,6 +1525,8 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType, _DType_co]):
@overload
def __le__(self: _ArrayND[object_], other: Any) -> _ArrayOrScalar[bool_]: ...
@overload
+ def __le__(self: _ArrayND[Any], other: _ArrayLikeObject_co) -> _ArrayOrScalar[bool_]: ...
+ @overload
def __le__(
self: _ArrayND[Union[number[Any], datetime64, timedelta64, bool_]],
other: _RecursiveSequence,
@@ -1539,6 +1543,8 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType, _DType_co]):
@overload
def __gt__(self: _ArrayND[object_], other: Any) -> _ArrayOrScalar[bool_]: ...
@overload
+ def __gt__(self: _ArrayND[Any], other: _ArrayLikeObject_co) -> _ArrayOrScalar[bool_]: ...
+ @overload
def __gt__(
self: _ArrayND[Union[number[Any], datetime64, timedelta64, bool_]],
other: _RecursiveSequence,
@@ -1555,6 +1561,8 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType, _DType_co]):
@overload
def __ge__(self: _ArrayND[object_], other: Any) -> _ArrayOrScalar[bool_]: ...
@overload
+ def __ge__(self: _ArrayND[Any], other: _ArrayLikeObject_co) -> _ArrayOrScalar[bool_]: ...
+ @overload
def __ge__(
self: _ArrayND[Union[number[Any], datetime64, timedelta64, bool_]],
other: _RecursiveSequence,