Skip to content

Commit 8eb0415

Browse files
authored
Merge pull request numpy#27758 from jorenham/typing/remove-ndarray-unkown-overloads
TYP: Remove ``ndarray`` binop overloads for ``NDArray[Never]``
2 parents b25ecaa + fb07ccd commit 8eb0415

File tree

1 file changed

+0
-84
lines changed

1 file changed

+0
-84
lines changed

numpy/__init__.pyi

Lines changed: 0 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ from numpy._typing import (
3232
_ArrayLikeTD64_co,
3333
_ArrayLikeDT64_co,
3434
_ArrayLikeObject_co,
35-
_ArrayLikeUnknown,
36-
_UnknownType,
3735

3836
# DTypes
3937
DTypeLike,
@@ -2350,8 +2348,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
23502348

23512349
# Binary ops
23522350
@overload
2353-
def __matmul__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
2354-
@overload
23552351
def __matmul__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[np.bool]: ... # type: ignore[misc]
23562352
@overload
23572353
def __matmul__(self: _ArrayUInt_co, other: _ArrayLikeUInt_co, /) -> NDArray[unsignedinteger[Any]]: ... # type: ignore[misc]
@@ -2368,8 +2364,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
23682364
@overload
23692365
def __matmul__(self: NDArray[Any], other: _ArrayLikeObject_co, /) -> Any: ...
23702366

2371-
@overload
2372-
def __rmatmul__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
23732367
@overload
23742368
def __rmatmul__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[np.bool]: ... # type: ignore[misc]
23752369
@overload
@@ -2387,8 +2381,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
23872381
@overload
23882382
def __rmatmul__(self: NDArray[Any], other: _ArrayLikeObject_co, /) -> Any: ...
23892383

2390-
@overload
2391-
def __mod__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
23922384
@overload
23932385
def __mod__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[int8]: ... # type: ignore[misc]
23942386
@overload
@@ -2404,8 +2396,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
24042396
@overload
24052397
def __mod__(self: NDArray[Any], other: _ArrayLikeObject_co, /) -> Any: ...
24062398

2407-
@overload
2408-
def __rmod__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
24092399
@overload
24102400
def __rmod__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[int8]: ... # type: ignore[misc]
24112401
@overload
@@ -2421,8 +2411,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
24212411
@overload
24222412
def __rmod__(self: NDArray[Any], other: _ArrayLikeObject_co, /) -> Any: ...
24232413

2424-
@overload
2425-
def __divmod__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> _2Tuple[NDArray[Any]]: ...
24262414
@overload
24272415
def __divmod__(self: NDArray[np.bool], other: _ArrayLikeBool_co) -> _2Tuple[NDArray[int8]]: ... # type: ignore[misc]
24282416
@overload
@@ -2434,8 +2422,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
24342422
@overload
24352423
def __divmod__(self: _ArrayTD64_co, other: _SupportsArray[_dtype[timedelta64]] | _NestedSequence[_SupportsArray[_dtype[timedelta64]]], /) -> tuple[NDArray[int64], NDArray[timedelta64]]: ...
24362424

2437-
@overload
2438-
def __rdivmod__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> _2Tuple[NDArray[Any]]: ...
24392425
@overload
24402426
def __rdivmod__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> _2Tuple[NDArray[int8]]: ... # type: ignore[misc]
24412427
@overload
@@ -2447,8 +2433,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
24472433
@overload
24482434
def __rdivmod__(self: _ArrayTD64_co, other: _SupportsArray[_dtype[timedelta64]] | _NestedSequence[_SupportsArray[_dtype[timedelta64]]], /) -> tuple[NDArray[int64], NDArray[timedelta64]]: ...
24492435

2450-
@overload
2451-
def __add__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
24522436
@overload
24532437
def __add__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[np.bool]: ... # type: ignore[misc]
24542438
@overload
@@ -2472,8 +2456,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
24722456
@overload
24732457
def __add__(self: NDArray[Any], other: _ArrayLikeObject_co, /) -> Any: ...
24742458

2475-
@overload
2476-
def __radd__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
24772459
@overload
24782460
def __radd__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[np.bool]: ... # type: ignore[misc]
24792461
@overload
@@ -2497,8 +2479,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
24972479
@overload
24982480
def __radd__(self: NDArray[Any], other: _ArrayLikeObject_co, /) -> Any: ...
24992481

2500-
@overload
2501-
def __sub__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
25022482
@overload
25032483
def __sub__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NoReturn: ...
25042484
@overload
@@ -2522,8 +2502,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
25222502
@overload
25232503
def __sub__(self: NDArray[Any], other: _ArrayLikeObject_co, /) -> Any: ...
25242504

2525-
@overload
2526-
def __rsub__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
25272505
@overload
25282506
def __rsub__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NoReturn: ...
25292507
@overload
@@ -2547,8 +2525,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
25472525
@overload
25482526
def __rsub__(self: NDArray[Any], other: _ArrayLikeObject_co, /) -> Any: ...
25492527

2550-
@overload
2551-
def __mul__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
25522528
@overload
25532529
def __mul__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[np.bool]: ... # type: ignore[misc]
25542530
@overload
@@ -2570,8 +2546,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
25702546
@overload
25712547
def __mul__(self: NDArray[Any], other: _ArrayLikeObject_co, /) -> Any: ...
25722548

2573-
@overload
2574-
def __rmul__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
25752549
@overload
25762550
def __rmul__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[np.bool]: ... # type: ignore[misc]
25772551
@overload
@@ -2593,8 +2567,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
25932567
@overload
25942568
def __rmul__(self: NDArray[Any], other: _ArrayLikeObject_co, /) -> Any: ...
25952569

2596-
@overload
2597-
def __floordiv__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
25982570
@overload
25992571
def __floordiv__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[int8]: ... # type: ignore[misc]
26002572
@overload
@@ -2614,8 +2586,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
26142586
@overload
26152587
def __floordiv__(self: NDArray[Any], other: _ArrayLikeObject_co, /) -> Any: ...
26162588

2617-
@overload
2618-
def __rfloordiv__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
26192589
@overload
26202590
def __rfloordiv__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[int8]: ... # type: ignore[misc]
26212591
@overload
@@ -2635,8 +2605,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
26352605
@overload
26362606
def __rfloordiv__(self: NDArray[Any], other: _ArrayLikeObject_co, /) -> Any: ...
26372607

2638-
@overload
2639-
def __pow__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
26402608
@overload
26412609
def __pow__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[int8]: ... # type: ignore[misc]
26422610
@overload
@@ -2654,8 +2622,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
26542622
@overload
26552623
def __pow__(self: NDArray[Any], other: _ArrayLikeObject_co, /) -> Any: ...
26562624

2657-
@overload
2658-
def __rpow__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
26592625
@overload
26602626
def __rpow__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[int8]: ... # type: ignore[misc]
26612627
@overload
@@ -2673,8 +2639,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
26732639
@overload
26742640
def __rpow__(self: NDArray[Any], other: _ArrayLikeObject_co, /) -> Any: ...
26752641

2676-
@overload
2677-
def __truediv__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
26782642
@overload
26792643
def __truediv__(self: _ArrayInt_co, other: _ArrayInt_co, /) -> NDArray[float64]: ... # type: ignore[misc]
26802644
@overload
@@ -2694,8 +2658,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
26942658
@overload
26952659
def __truediv__(self: NDArray[Any], other: _ArrayLikeObject_co, /) -> Any: ...
26962660

2697-
@overload
2698-
def __rtruediv__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
26992661
@overload
27002662
def __rtruediv__(self: _ArrayInt_co, other: _ArrayInt_co, /) -> NDArray[float64]: ... # type: ignore[misc]
27012663
@overload
@@ -2715,8 +2677,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
27152677
@overload
27162678
def __rtruediv__(self: NDArray[Any], other: _ArrayLikeObject_co, /) -> Any: ...
27172679

2718-
@overload
2719-
def __lshift__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
27202680
@overload
27212681
def __lshift__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[int8]: ... # type: ignore[misc]
27222682
@overload
@@ -2728,8 +2688,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
27282688
@overload
27292689
def __lshift__(self: NDArray[Any], other: _ArrayLikeObject_co, /) -> Any: ...
27302690

2731-
@overload
2732-
def __rlshift__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
27332691
@overload
27342692
def __rlshift__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[int8]: ... # type: ignore[misc]
27352693
@overload
@@ -2741,8 +2699,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
27412699
@overload
27422700
def __rlshift__(self: NDArray[Any], other: _ArrayLikeObject_co, /) -> Any: ...
27432701

2744-
@overload
2745-
def __rshift__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
27462702
@overload
27472703
def __rshift__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[int8]: ... # type: ignore[misc]
27482704
@overload
@@ -2754,8 +2710,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
27542710
@overload
27552711
def __rshift__(self: NDArray[Any], other: _ArrayLikeObject_co, /) -> Any: ...
27562712

2757-
@overload
2758-
def __rrshift__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
27592713
@overload
27602714
def __rrshift__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[int8]: ... # type: ignore[misc]
27612715
@overload
@@ -2767,8 +2721,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
27672721
@overload
27682722
def __rrshift__(self: NDArray[Any], other: _ArrayLikeObject_co, /) -> Any: ...
27692723

2770-
@overload
2771-
def __and__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
27722724
@overload
27732725
def __and__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[np.bool]: ... # type: ignore[misc]
27742726
@overload
@@ -2780,8 +2732,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
27802732
@overload
27812733
def __and__(self: NDArray[Any], other: _ArrayLikeObject_co, /) -> Any: ...
27822734

2783-
@overload
2784-
def __rand__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
27852735
@overload
27862736
def __rand__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[np.bool]: ... # type: ignore[misc]
27872737
@overload
@@ -2793,8 +2743,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
27932743
@overload
27942744
def __rand__(self: NDArray[Any], other: _ArrayLikeObject_co, /) -> Any: ...
27952745

2796-
@overload
2797-
def __xor__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
27982746
@overload
27992747
def __xor__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[np.bool]: ... # type: ignore[misc]
28002748
@overload
@@ -2806,8 +2754,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
28062754
@overload
28072755
def __xor__(self: NDArray[Any], other: _ArrayLikeObject_co, /) -> Any: ...
28082756

2809-
@overload
2810-
def __rxor__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
28112757
@overload
28122758
def __rxor__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[np.bool]: ... # type: ignore[misc]
28132759
@overload
@@ -2819,8 +2765,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
28192765
@overload
28202766
def __rxor__(self: NDArray[Any], other: _ArrayLikeObject_co, /) -> Any: ...
28212767

2822-
@overload
2823-
def __or__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
28242768
@overload
28252769
def __or__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[np.bool]: ... # type: ignore[misc]
28262770
@overload
@@ -2832,8 +2776,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
28322776
@overload
28332777
def __or__(self: NDArray[Any], other: _ArrayLikeObject_co, /) -> Any: ...
28342778

2835-
@overload
2836-
def __ror__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
28372779
@overload
28382780
def __ror__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[np.bool]: ... # type: ignore[misc]
28392781
@overload
@@ -2854,8 +2796,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
28542796
# NOTE: Due to a mypy bug, overloading on e.g. `self: NDArray[SCT_floating]` won't
28552797
# work, as this will lead to `false negatives` when using these inplace ops.
28562798
@overload
2857-
def __iadd__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
2858-
@overload
28592799
def __iadd__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[np.bool]: ...
28602800
@overload
28612801
def __iadd__(self: NDArray[unsignedinteger[_NBit1]], other: _ArrayLikeUInt_co | _IntLike_co, /) -> NDArray[unsignedinteger[_NBit1]]: ...
@@ -2876,8 +2816,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
28762816
@overload
28772817
def __iadd__(self: NDArray[object_], other: Any, /) -> NDArray[object_]: ...
28782818

2879-
@overload
2880-
def __isub__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
28812819
@overload
28822820
def __isub__(self: NDArray[unsignedinteger[_NBit1]], other: _ArrayLikeUInt_co | _IntLike_co, /) -> NDArray[unsignedinteger[_NBit1]]: ...
28832821
@overload
@@ -2897,8 +2835,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
28972835
@overload
28982836
def __isub__(self: NDArray[object_], other: Any, /) -> NDArray[object_]: ...
28992837

2900-
@overload
2901-
def __imul__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
29022838
@overload
29032839
def __imul__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[np.bool]: ...
29042840
@overload
@@ -2918,8 +2854,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
29182854
@overload
29192855
def __imul__(self: NDArray[object_], other: Any, /) -> NDArray[object_]: ...
29202856

2921-
@overload
2922-
def __itruediv__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
29232857
@overload
29242858
def __itruediv__(self: NDArray[float64], other: _ArrayLikeFloat_co, /) -> NDArray[float64]: ...
29252859
@overload
@@ -2935,8 +2869,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
29352869
@overload
29362870
def __itruediv__(self: NDArray[object_], other: Any, /) -> NDArray[object_]: ...
29372871

2938-
@overload
2939-
def __ifloordiv__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
29402872
@overload
29412873
def __ifloordiv__(self: NDArray[unsignedinteger[_NBit1]], other: _ArrayLikeUInt_co | _IntLike_co, /) -> NDArray[unsignedinteger[_NBit1]]: ...
29422874
@overload
@@ -2956,8 +2888,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
29562888
@overload
29572889
def __ifloordiv__(self: NDArray[object_], other: Any, /) -> NDArray[object_]: ...
29582890

2959-
@overload
2960-
def __ipow__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
29612891
@overload
29622892
def __ipow__(self: NDArray[unsignedinteger[_NBit1]], other: _ArrayLikeUInt_co | _IntLike_co, /) -> NDArray[unsignedinteger[_NBit1]]: ...
29632893
@overload
@@ -2973,8 +2903,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
29732903
@overload
29742904
def __ipow__(self: NDArray[object_], other: Any, /) -> NDArray[object_]: ...
29752905

2976-
@overload
2977-
def __imod__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
29782906
@overload
29792907
def __imod__(self: NDArray[unsignedinteger[_NBit1]], other: _ArrayLikeUInt_co | _IntLike_co, /) -> NDArray[unsignedinteger[_NBit1]]: ...
29802908
@overload
@@ -2988,26 +2916,20 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
29882916
@overload
29892917
def __imod__(self: NDArray[object_], other: Any, /) -> NDArray[object_]: ...
29902918

2991-
@overload
2992-
def __ilshift__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
29932919
@overload
29942920
def __ilshift__(self: NDArray[unsignedinteger[_NBit1]], other: _ArrayLikeUInt_co | _IntLike_co, /) -> NDArray[unsignedinteger[_NBit1]]: ...
29952921
@overload
29962922
def __ilshift__(self: NDArray[signedinteger[_NBit1]], other: _ArrayLikeInt_co, /) -> NDArray[signedinteger[_NBit1]]: ...
29972923
@overload
29982924
def __ilshift__(self: NDArray[object_], other: Any, /) -> NDArray[object_]: ...
29992925

3000-
@overload
3001-
def __irshift__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
30022926
@overload
30032927
def __irshift__(self: NDArray[unsignedinteger[_NBit1]], other: _ArrayLikeUInt_co | _IntLike_co, /) -> NDArray[unsignedinteger[_NBit1]]: ...
30042928
@overload
30052929
def __irshift__(self: NDArray[signedinteger[_NBit1]], other: _ArrayLikeInt_co, /) -> NDArray[signedinteger[_NBit1]]: ...
30062930
@overload
30072931
def __irshift__(self: NDArray[object_], other: Any, /) -> NDArray[object_]: ...
30082932

3009-
@overload
3010-
def __iand__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
30112933
@overload
30122934
def __iand__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[np.bool]: ...
30132935
@overload
@@ -3017,8 +2939,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
30172939
@overload
30182940
def __iand__(self: NDArray[object_], other: Any, /) -> NDArray[object_]: ...
30192941

3020-
@overload
3021-
def __ixor__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
30222942
@overload
30232943
def __ixor__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[np.bool]: ...
30242944
@overload
@@ -3028,8 +2948,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
30282948
@overload
30292949
def __ixor__(self: NDArray[object_], other: Any, /) -> NDArray[object_]: ...
30302950

3031-
@overload
3032-
def __ior__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
30332951
@overload
30342952
def __ior__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[np.bool]: ...
30352953
@overload
@@ -3039,8 +2957,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
30392957
@overload
30402958
def __ior__(self: NDArray[object_], other: Any, /) -> NDArray[object_]: ...
30412959

3042-
@overload
3043-
def __imatmul__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
30442960
@overload
30452961
def __imatmul__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[np.bool]: ...
30462962
@overload

0 commit comments

Comments
 (0)