Skip to content

Commit f5579b5

Browse files
committed
✅ minor test fixes
1 parent 77850df commit f5579b5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ assert_type(PS_lag.integ(SC_i_co, SC_f_co), npp.Laguerre)
122122
assert_type(PS_poly.deriv(), npp.Polynomial)
123123
assert_type(PS_herm.deriv(SC_i_co), npp.Hermite)
124124

125-
assert_type(PS_poly.roots(), _Array1D[np.float64] | _Array1D[np.complex128])
125+
assert_type(PS_poly.roots(), _Array1D[np.float64 | np.complex128])
126126

127127
assert_type(
128128
PS_poly.linspace(),

src/numpy-stubs/@test/static/reject/lib_function_base.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ np.piecewise(AR_f8, AR_b_list, [fn_ar_i], 42, _=None) # pyright: ignore[reportC
2828

2929
np.interp(AR_f8, AR_c16, AR_f8) # type: ignore[arg-type] # pyright: ignore[reportArgumentType, reportCallIssue]
3030
np.interp(AR_c16, AR_f8, AR_f8) # type: ignore[arg-type] # pyright: ignore[reportArgumentType, reportCallIssue]
31-
np.interp(AR_f8, AR_f8, AR_f8, period=AR_c16) # type: ignore[call-overload] # pyright: ignore[reportArgumentType, reportCallIssue]
31+
np.interp(AR_f8, AR_f8, AR_f8, period=AR_c16) # type: ignore[arg-type] # pyright: ignore[reportArgumentType, reportCallIssue]
3232
np.interp(AR_f8, AR_f8, AR_O) # type: ignore[arg-type] # pyright: ignore[reportArgumentType, reportCallIssue]
3333

3434
np.average(AR_m) # type: ignore[arg-type] # pyright: ignore[reportArgumentType, reportCallIssue]

0 commit comments

Comments
 (0)