@@ -3362,13 +3362,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DTypeT_co]):
3362
3362
@overload
3363
3363
def __iadd__ (self : NDArray [np .bool ], other : _ArrayLikeBool_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3364
3364
@overload
3365
- def __iadd__ (
3366
- self : NDArray [unsignedinteger ],
3367
- other : _ArrayLikeUInt_co | _IntLike_co ,
3368
- / ,
3369
- ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3370
- @overload
3371
- def __iadd__ (self : NDArray [signedinteger ], other : _ArrayLikeInt_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3365
+ def __iadd__ (self : NDArray [integer ], other : _ArrayLikeInt_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3372
3366
@overload
3373
3367
def __iadd__ (self : NDArray [floating ], other : _ArrayLikeFloat_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3374
3368
@overload
@@ -3388,13 +3382,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DTypeT_co]):
3388
3382
3389
3383
#
3390
3384
@overload
3391
- def __isub__ (
3392
- self : NDArray [unsignedinteger ],
3393
- other : _ArrayLikeUInt_co | _IntLike_co ,
3394
- / ,
3395
- ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3396
- @overload
3397
- def __isub__ (self : NDArray [signedinteger ], other : _ArrayLikeInt_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3385
+ def __isub__ (self : NDArray [integer ], other : _ArrayLikeInt_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3398
3386
@overload
3399
3387
def __isub__ (self : NDArray [floating ], other : _ArrayLikeFloat_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3400
3388
@overload
@@ -3409,15 +3397,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DTypeT_co]):
3409
3397
def __imul__ (self : NDArray [np .bool ], other : _ArrayLikeBool_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3410
3398
@overload
3411
3399
def __imul__ (
3412
- self : NDArray [unsignedinteger ],
3413
- other : _ArrayLikeUInt_co | _IntLike_co ,
3414
- / ,
3415
- ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3416
- @overload
3417
- def __imul__ (
3418
- self : ndarray [Any , dtype [signedinteger | character ] | dtypes .StringDType ],
3419
- other : _ArrayLikeInt_co ,
3420
- / ,
57AE
div>
3400
+ self : ndarray [Any , dtype [integer | character ] | dtypes .StringDType ], other : _ArrayLikeInt_co , /
3421
3401
) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3422
3402
@overload
3423
3403
def __imul__ (self : NDArray [floating | timedelta64 ], other : _ArrayLikeFloat_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
@@ -3427,13 +3407,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DTypeT_co]):
3427
3407
def __imul__ (self : NDArray [object_ ], other : Any , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3428
3408
3429
3409
@overload
3430
- def __ipow__ (
3431
- self : NDArray [unsignedinteger ],
3432
- other : _ArrayLikeUInt_co | _IntLike_co ,
3433
- / ,
3434
- ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3435
- @overload
3436
- def __ipow__ (self : NDArray [signedinteger ], other : _ArrayLikeInt_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3410
+ def __ipow__ (self : NDArray [integer ], other : _ArrayLikeInt_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3437
3411
@overload
3438
3412
def __ipow__ (self : NDArray [floating ], other : _ArrayLikeFloat_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3439
3413
@overload
@@ -3451,27 +3425,15 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DTypeT_co]):
3451
3425
3452
3426
# keep in sync with `__imod__`
3453
3427
@overload
3454
- def __ifloordiv__ (
3455
- self : NDArray [unsignedinteger ],
3456
- other : _ArrayLikeUInt_co | _IntLike_co ,
3457
- / ,
3458
- ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3459
- @overload
3460
- def __ifloordiv__ (self : NDArray [signedinteger ], other : _ArrayLikeInt_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3428
+ def __ifloordiv__ (self : NDArray [integer ], other : _ArrayLikeInt_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3461
3429
@overload
3462
3430
def __ifloordiv__ (self : NDArray [floating | timedelta64 ], other : _ArrayLikeFloat_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3463
3431
@overload
3464
3432
def __ifloordiv__ (self : NDArray [object_ ], other : Any , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3465
3433
3466
3434
# keep in sync with `__ifloordiv__`
3467
3435
@overload
3468
- def __imod__ (
3469
- self : NDArray [unsignedinteger ],
3470
- other : _ArrayLikeUInt_co | _IntLike_co ,
3471
- / ,
3472
- ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3473
- @overload
3474
- def __imod__ (self : NDArray [signedinteger ], other : _ArrayLikeInt_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3436
+ def __imod__ (self : NDArray [integer ], other : _ArrayLikeInt_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3475
3437
@overload
3476
3438
def __imod__ (self : NDArray [floating ], other : _ArrayLikeFloat_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3477
3439
@overload
@@ -3485,77 +3447,45 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeT_co, _DTypeT_co]):
3485
3447
3486
3448
# keep in sync with `__irshift__`
3487
3449
@overload
3488
- def __ilshift__ (
3489
- self : NDArray [unsignedinteger ],
3490
- other : _ArrayLikeUInt_co | _IntLike_co ,
3491
- / ,
3492
- ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3493
- @overload
3494
- def __ilshift__ (self : NDArray [signedinteger ], other : _ArrayLikeInt_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3450
+ def __ilshift__ (self : NDArray [integer ], other : _ArrayLikeInt_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3495
3451
@overload
3496
3452
def __ilshift__ (self : NDArray [object_ ], other : Any , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3497
3453
3498
3454
# keep in sync with `__ilshift__`
3499
3455
@overload
3500
- def __irshift__ (
3501
- self : NDArray [unsignedinteger ],
3502
- other : _ArrayLikeUInt_co | _IntLike_co ,
3503
- / ,
3504
- ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3505
- @overload
3506
- def __irshift__ (self : NDArray [signedinteger ], other : _ArrayLikeInt_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3456
+ def __irshift__ (self : NDArray [integer ], other : _ArrayLikeInt_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3507
3457
@overload
3508
3458
def __irshift__ (self : NDArray [object_ ], other : Any , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3509
3459
3510
3460
# keep in sync with `__ixor__` and `__ior__`
3511
3461
@overload
3512
3462
def __iand__ (self : NDArray [np .bool ], other : _ArrayLikeBool_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3513
3463
@overload
3514
- def __iand__ (
3515
- self : NDArray [unsignedinteger ],
3516
- other : _ArrayLikeUInt_co | _IntLike_co ,
3517
- / ,
3518
- ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3519
- @overload
3520
- def __iand__ (self : NDArray [signedinteger ], other : _ArrayLikeInt_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3464
+ def __iand__ (self : NDArray [integer ], other : _ArrayLikeInt_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3521
3465
@overload
3522
3466
def __iand__ (self : NDArray [object_ ], other : Any , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3523
3467
3524
3468
# keep in sync with `__iand__` and `__ior__`
3525
3469
@overload
3526
3470
def __ixor__ (self : NDArray [np .bool ], other : _ArrayLikeBool_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3527
3471
@overload
3528
- def __ixor__ (
3529
- self : NDArray [unsignedinteger ],
3530
- other : _ArrayLikeUInt_co | _IntLike_co ,
3531
- / ,
3532
- ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3533
- @overload
3534
- def __ixor__ (self : NDArray [signedinteger ], other : _ArrayLikeInt_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3472
+ def __ixor__ (self : NDArray [integer ], other : _ArrayLikeInt_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3535
3473
@overload
3536
3474
def __ixor__ (self : NDArray [object_ ], other : Any , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3537
3475
3538
3476
# keep in sync with `__iand__` and `__ixor__`
3539
3477
@overload
3540
3478
def __ior__ (self : NDArray [np .bool ], other : _ArrayLikeBool_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3541
3479
@overload
3542
- def __ior__ (
3543
- self : NDArray [unsignedinteger ],
3544
- other : _ArrayLikeUInt_co | _IntLike_co ,
3545
- / ,
3546
- ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3547
- @overload
3548
- def __ior__ (self : NDArray [signedinteger ], other : _ArrayLikeInt_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3480
+ def __ior__ (self : NDArray [integer ], other : _ArrayLikeInt_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3549
3481
@overload
3550
3482
def __ior__ (self : NDArray [object_ ], other : Any , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3551
3483
3552
3484
#
3553
3485
@overload
3554
3486
def __imatmul__ (self : NDArray [np .bool ], other : _ArrayLikeBool_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3555
3487
@overload
3556
- def __imatmul__ (self : NDArray [unsignedinteger ], other : _ArrayLikeUInt_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3557
- @overload
3558
- def __imatmul__ (self : NDArray [signedinteger ], other : _ArrayLikeInt_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3488
+ def __imatmul__ (self : NDArray [integer ], other : _ArrayLikeInt_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3559
3489
@overload
3560
3490
def __imatmul__ (self : NDArray [floating ], other : _ArrayLikeFloat_co , / ) -> ndarray [_ShapeT_co , _DTypeT_co ]: ...
3561
3491
@overload
0 commit comments