Skip to content

Commit 73f5065

Browse files
committed
✅ fix failing ndarray.__[r]add__ tests
1 parent e218f07 commit 73f5065

File tree

2 files changed

+170
-145
lines changed

2 files changed

+170
-145
lines changed

src/numpy-stubs/@test/static/accept/arithmetic.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ assert_type(c8 + b_, np.complex64)
434434
assert_type(c8 + b, np.complex64)
435435
assert_type(c8 + c, np.complex64)
436436
assert_type(c8 + f, np.complex64)
437-
assert_type(c8 + AR_f, npt.NDArray[np.complexfloating])
437+
assert_type(c8 + AR_f, npt.NDArray[np.complex128])
438438

439439
assert_type(f16 + c8, np.clongdouble)
440440
assert_type(c16 + c8, np.complex128)
@@ -447,7 +447,7 @@ assert_type(b_ + c8, np.complex64)
447447
assert_type(b + c8, np.complex64)
448448
assert_type(c + c8, np.complex64)
449449
assert_type(f + c8, np.complex64)
450-
assert_type(AR_f + c8, npt.NDArray[np.complexfloating])
450+
assert_type(AR_f + c8, npt.NDArray[np.complex128])
451451

452452
# Float
453453

0 commit comments

Comments
 (0)