Skip to content

Commit fb07ccd

Browse files
committed
TYP: Remove ndarray binop overloads for NDArray[Never]
1 parent 9150cac commit fb07ccd

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,
@@ -2349,8 +2347,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
23492347

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

2899-
@overload
2900-
def __imul__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
29012837
@overload
29022838
def __imul__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[np.bool]: ...
29032839
@overload
@@ -2917,8 +2853,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
29172853
@overload
29182854
def __imul__(self: NDArray[object_], other: Any, /) -> NDArray[object_]: ...
29192855

2920-
@overload
2921-
def __itruediv__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
29222856
@overload
29232857
def __itruediv__(self: NDArray[float64], other: _ArrayLikeFloat_co, /) -> NDArray[float64]: ...
29242858
@overload
@@ -2934,8 +2868,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
29342868
@overload
29352869
def __itruediv__(self: NDArray[object_], other: Any, /) -> NDArray[object_]: ...
29362870

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

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

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

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

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

3008-
@overload
3009-
def __iand__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
30102932
@overload
30112933
def __iand__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[np.bool]: ...
30122934
@overload
@@ -3016,8 +2938,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
30162938
@overload
30172939
def __iand__(self: NDArray[object_], other: Any, /) -> NDArray[object_]: ...
30182940

3019-
@overload
3020-
def __ixor__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
30212941
@overload
30222942
def __ixor__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[np.bool]: ...
30232943
@overload
@@ -3027,8 +2947,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
30272947
@overload
30282948
def __ixor__(self: NDArray[object_], other: Any, /) -> NDArray[object_]: ...
30292949

3030-
@overload
3031-
def __ior__(self: NDArray[_UnknownType], other: _ArrayLikeUnknown, /) -> NDArray[Any]: ...
30322950
@overload
30332951
def __ior__(self: NDArray[np.bool], other: _ArrayLikeBool_co, /) -> NDArray[np.bool]: ...
30342952
@overload
@@ -3038,8 +2956,6 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType_co, _DType_co]):
30382956
@overload
30392957
def __ior__(self: NDArray[object_], other: Any, /) -> NDArray[object_]: ...
30402958

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

0 commit comments

Comments
 (0)