@@ -32,6 +32,7 @@ from numpy._typing import (
32
32
_ArrayLikeComplex_co ,
33
33
_ArrayLikeNumber_co ,
34
34
_ArrayLikeTD64_co ,
35
+ _ArrayLikeTD64_comp_co ,
35
36
_ArrayLikeDT64_co ,
36
37
_ArrayLikeObject_co ,
37
38
_ArrayLikeStr_co ,
@@ -1853,7 +1854,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType, _DType_co]):
1853
1854
@overload
1854
1855
def __lt__ (self : _ArrayNumber_co , other : _ArrayLikeNumber_co ) -> NDArray [bool_ ]: ...
1855
1856
@overload
1856
- def __lt__ (self : _ArrayTD64_co , other : _ArrayLikeTD64_co ) -> NDArray [bool_ ]: ...
1857
+ def __lt__ (self : _ArrayTD64_co , other : _ArrayLikeTD64_comp_co ) -> NDArray [bool_ ]: ...
1857
1858
@overload
1858
1859
def __lt__ (self : NDArray [datetime64 ], other : _ArrayLikeDT64_co ) -> NDArray [bool_ ]: ...
1859
1860
@overload
@@ -1864,7 +1865,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType, _DType_co]):
1864
1865
@overload
1865
1866
def __le__ (self : _ArrayNumber_co , other : _ArrayLikeNumber_co ) -> NDArray [bool_ ]: ...
1866
1867
@overload
1867
- def __le__ (self : _ArrayTD64_co , other : _ArrayLikeTD64_co ) -> NDArray [bool_ ]: ...
1868
+ def __le__ (self : _ArrayTD64_co , other : _ArrayLikeTD64_comp_co ) -> NDArray [bool_ ]: ...
1868
1869
@overload
1869
1870
def __le__ (self : NDArray [datetime64 ], other : _ArrayLikeDT64_co ) -> NDArray [bool_ ]: ...
1870
1871
@overload
@@ -1875,7 +1876,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType, _DType_co]):
1875
1876
@overload
1876
1877
def __gt__ (self : _ArrayNumber_co , other : _ArrayLikeNumber_co ) -> NDArray [bool_ ]: ...
1877
1878
@overload
1878
- def __gt__(self : _ArrayTD64_co , other : _ArrayLikeTD64_co ) -> NDArray [bool_ ]: ...
1879
+ def __gt__ (self : _ArrayTD64_co , other : _ArrayLikeTD64_comp_co ) -> NDArray [bool_ ]: ...
1879
1880
@overload
1880
1881
def __gt__ (self : NDArray [datetime64 ], other : _ArrayLikeDT64_co ) -> NDArray [bool_ ]: ...
1881
1882
@overload
@@ -1886,7 +1887,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType, _DType_co]):
1886
1887
@overload
1887
1888
def __ge__ (self : _ArrayNumber_co , other : _ArrayLikeNumber_co ) -> NDArray [bool_ ]: ...
1888
1889
@overload
1889
- def __ge__ (self : _ArrayTD64_co , other : _ArrayLikeTD64_co ) -> NDArray [bool_ ]: ...
1890
+ def __ge__ (self : _ArrayTD64_co , other : _ArrayLikeTD64_comp_co ) -> NDArray [bool_ ]: ...
1890
1891
@overload
1891
1892
def __ge__ (self : NDArray [datetime64 ], other : _ArrayLikeDT64_co ) -> NDArray [bool_ ]: ...
1892
1893
@overload
@@ -2919,10 +2920,10 @@ class timedelta64(generic):
2919
2920
def __rmod__ (self , other : timedelta64 ) -> timedelta64 : ...
2920
2921
def __divmod__ (self , other : timedelta64 ) -> tuple [int64 , timedelta64 ]: ...
2921
2922
def __rdivmod__ (self , other : timedelta64 ) -> tuple [int64 , timedelta64 ]: ...
2922
- __lt__ : _ComparisonOp [_TD64Like_co , _ArrayLikeTD64_co ]
2923
- __le__ : _ComparisonOp [_TD64Like_co , _ArrayLikeTD64_co ]
2924
- __gt__ : _ComparisonOp [_TD64Like_co , _ArrayLikeTD64_co ]
2925
- __ge__ : _ComparisonOp [_TD64Like_co , _ArrayLikeTD64_co ]
2923
+ __lt__ : _ComparisonOp [_TD64Like_co , _ArrayLikeTD64_comp_co ]
2924
+ __le__ : _ComparisonOp [_TD64Like_co , _ArrayLikeTD64_comp_co ]
2925
+ __gt__ : _ComparisonOp [_TD64Like_co , _ArrayLikeTD64_comp_co ]
2926
+ __ge__ : _ComparisonOp [_TD64Like_co , _ArrayLikeTD64_comp_co ]
2926
2927
2927
2928
class unsignedinteger (integer [_NBit1 ]):
2928
2929
# NOTE: `uint64 + signedinteger -> float64`
0 commit comments