@@ -3356,6 +3356,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DType_co]):
3356
3356
@overload
3357
3357
def __iadd__ (self : NDArray [object_ ], other : Any , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3358
3358
3359
+ #
3359
3360
@overload
3360
3361
def __isub__ (
3361
3362
self : NDArray [unsignedinteger [Any ]],
@@ -3379,6 +3380,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DType_co]):
3379
3380
@overload
3380
3381
def __isub__ (self : NDArray [object_ ], other : Any , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3381
3382
3383
+ #
3382
3384
@overload
3383
3385
def __imul__ (self : NDArray [np .bool ], other : _ArrayLikeBool_co , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3384
3386
@overload
@@ -3403,66 +3405,51 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DType_co]):
3403
3405
def __imul__ (self : NDArray [object_ ], other : Any , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3404
3406
3405
3407
@overload
3406
- def __itruediv__ (self : NDArray [float64 ], other : _ArrayLikeFloat_co , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3407
- @overload
3408
- def __itruediv__ (self : NDArray [floating [Any ]], other : _ArrayLikeFloat_co , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3409
- @overload
3410
- def __itruediv__ (self : NDArray [complex128 ], other : _ArrayLikeComplex_co , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3411
- @overload
3412
- def __itruediv__ (
3413
- self : NDArray [complexfloating [Any ]],
3414
- other : _ArrayLikeComplex_co ,
3408
+ def __ipow__ (
3409
+ self : NDArray [unsignedinteger [Any ]],
3410
+ other : _ArrayLikeUInt_co | _IntLike_co ,
3415
3411
/ ,
3416
3412
) -> ndarray [_ShapeT_co , _DType_co ]: ...
3417
3413
@overload
3418
- def __itruediv__ (self : NDArray [timedelta64 ] , other : _ArrayLikeInt , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3414
+ def __ipow__ (self : NDArray [signedinteger [ Any ]] , other : _ArrayLikeInt_co , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3419
3415
@overload
3420
- def __itruediv__ (self : NDArray [object_ ], other : Any , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3421
-
3416
+ def __ipow__ (self : NDArray [float64 ], other : _ArrayLikeFloat_co , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3422
3417
@overload
3423
- def __ifloordiv__ (
3424
- self : NDArray [unsignedinteger [Any ]],
3425
- other : _ArrayLikeUInt_co | _IntLike_co ,
3426
- / ,
3427
- ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3418
+ def __ipow__ (self : NDArray [floating [Any ]], other : _ArrayLikeFloat_co , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3428
3419
@overload
3429
- def __ifloordiv__ (self : NDArray [signedinteger [ Any ]] , other : _ArrayLikeInt_co , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3420
+ def __ipow__ (self : NDArray [complex128 ] , other : _ArrayLikeComplex_co , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3430
3421
@overload
3431
- def __ifloordiv__ (self : NDArray [float64 ] , other : _ArrayLikeFloat_co , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3422
+ def __ipow__ (self : NDArray [complexfloating [ Any ]] , other : _ArrayLikeComplex_co , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3432
3423
@overload
3433
- def __ifloordiv__ (self : NDArray [floating [Any ]], other : _ArrayLikeFloat_co , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3424
+ def __ipow__ (self : NDArray [object_ ], other : Any , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3425
+
3426
+ #
3434
3427
@overload
3435
- def __ifloordiv__ (self : NDArray [complex128 ], other : _ArrayLikeComplex_co , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3428
+ def __itruediv__ (self : NDArray [floating ], other : _ArrayLikeFloat_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3436
3429
@overload
3437
- def __ifloordiv__ (
3438
- self : NDArray [complexfloating [Any ]],
3439
- other : _ArrayLikeComplex_co ,
3440
- / ,
3441
- ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3430
+ def __itruediv__ (self : NDArray [complexfloating ], other : _ArrayLikeComplex_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3442
3431
@overload
3443
- def __ifloordiv__ (self : NDArray [timedelta64 ], other : _ArrayLikeInt , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3432
+ def __itruediv__ (self : NDArray [timedelta64 ], other : _ArrayLikeInt , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3444
3433
@overload
3445
- def __ifloordiv__ (self : NDArray [object_ ], other : Any , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3434
+ def __itruediv__ (self : NDArray [object_ ], other : Any , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3446
3435
3436
+ # keep in sync with `__imod__`
3447
3437
@overload
3448
- def __ipow__ (
3449
- self : NDArray [unsignedinteger [ Any ] ],
3438
+ def __ifloordiv__ (
3439
+ self : NDArray [unsignedinteger ],
3450
3440
other : _ArrayLikeUInt_co | _IntLike_co ,
3451
- / ,
3452
- ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3441
+ /
3442
+ ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3453
3443
@overload
3454
- def __ipow__ (self : NDArray [signedinteger [Any ]], other : _ArrayLikeInt_co , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3455
- @overload
3456
- def __ipow__ (self : NDArray [float64 ], other : _ArrayLikeFloat_co , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3457
- @overload
3458
- def __ipow__ (self : NDArray [floating [Any ]], other : _ArrayLikeFloat_co , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3444
+ def __ifloordiv__ (self : NDArray [signedinteger ], other : _ArrayLikeInt_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3459
3445
@overload
3460
- def __ipow__ (self : NDArray [complex128 ], other : _ArrayLikeComplex_co , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3446
+ def __ifloordiv__ (self : NDArray [floating ], other : _ArrayLikeFloat_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3461
3447
@overload
3462
- def __ipow__ (self : NDArray [complexfloating [ Any ]] , other : _ArrayLikeComplex_co , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3448
+ def __ifloordiv__ (self : NDArray [timedelta64 ] , other : _ArrayLikeInt , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3463
3449
@overload
3464
- def __ipow__ (self : NDArray [object_ ], other : Any , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3450
+ def __ifloordiv__ (self : NDArray [object_ ], other : Any , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3465
3451
3452
+ # keep in sync with `__ifloordiv__`
3466
3453
@overload
3467
3454
def __imod__ (
3468
3455
self : NDArray [unsignedinteger [Any ]],
@@ -3484,6 +3471,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DType_co]):
3484
3471
@overload
3485
3472
def __imod__ (self : NDArray [object_ ], other : Any , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3486
3473
3474
+ # keep in sync with `__irshift__`
3487
3475
@overload
3488
3476
def __ilshift__ (
3489
3477
self : NDArray [unsignedinteger [Any ]],
@@ -3495,6 +3483,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DType_co]):
3495
3483
@overload
3496
3484
def __ilshift__ (self : NDArray [object_ ], other : Any , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3497
3485
3486
+ # keep in sync with `__ilshift__`
3498
3487
@overload
3499
3488
def __irshift__ (
3500
3489
self : NDArray [unsignedinteger [Any ]],
@@ -3506,6 +3495,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DType_co]):
3506
3495
@overload
3507
3496
def __irshift__ (self : NDArray [object_ ], other : Any , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3508
3497
3498
+ # keep in sync with `__ixor__` and `__ior__`
3509
3499
@overload
3510
3500
def __iand__ (self : NDArray [np .bool ], other : _ArrayLikeBool_co , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3511
3501
@overload
@@ -3519,6 +3509,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DType_co]):
3519
3509
@overload
3520
3510
def __iand__ (self : NDArray [object_ ], other : Any , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3521
3511
3512
+ # keep in sync with `__iand__` and `__ior__`
3522
3513
@overload
3523
3514
def __ixor__ (self : NDArray [np .bool ], other : _ArrayLikeBool_co , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3524
3515
@overload
@@ -3532,6 +3523,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DType_co]):
3532
3523
@overload
3533
3524
def __ixor__ (self : NDArray [object_ ], other : Any , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3534
3525
3526
+ # keep in sync with `__iand__` and `__ixor__`
3535
3527
@overload
3536
3528
def __ior__ (self : NDArray [np .bool ], other : _ArrayLikeBool_co , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3537
3529
@overload
@@ -3545,6 +3537,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DType_co]):
3545
3537
@overload
3546
3538
def __ior__ (self : NDArray [object_ ], other : Any , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3547
3539
3540
+ #
3548
3541
@overload
3549
3542
def __imatmul__ (self : NDArray [np .bool ], other : _ArrayLikeBool_co , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3550
3543
@overload
@@ -3562,6 +3555,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DType_co]):
3562
3555
@overload
3563
3556
def __imatmul__ (self : NDArray [object_ ], other : Any , / ) -> ndarray [_ShapeT_co , _DType_co ]: ...
3564
3557
3558
+ #
3565
3559
def __dlpack__ (
3566
3560
self : NDArray [number [Any ]],
3567
3561
/ ,
0 commit comments