Skip to content

Commit 9d5315f

Browse files
committed
🐴 deal with randomly changed mypy error code
1 parent a217823 commit 9d5315f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ np.polyfit(AR_f8, AR_f8, 1, rcond=1j) # type: ignore[call-overload] # pyright:
2626
np.polyfit(AR_f8, AR_f8, 1, w=AR_c16) # type: ignore[arg-type] # pyright: ignore[reportArgumentType, reportCallIssue]
2727
np.polyfit(AR_f8, AR_f8, 1, cov="bob") # type: ignore[call-overload] # pyright: ignore[reportArgumentType, reportCallIssue]
2828

29-
np.polyval(AR_f8, AR_U) # type: ignore[arg-type] # pyright: ignore[reportArgumentType, reportCallIssue]
29+
np.polyval(AR_f8, AR_U) # type: ignore[misc] # pyright: ignore[reportArgumentType, reportCallIssue]
3030
np.polyadd(AR_f8, AR_U) # type: ignore[arg-type] # pyright: ignore[reportArgumentType, reportCallIssue]
3131
np.polysub(AR_f8, AR_U) # type: ignore[arg-type] # pyright: ignore[reportArgumentType, reportCallIssue]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ np.linalg.slogdet(AR_O) # type: ignore[arg-type] # pyright: ignore[reportArgum
3939

4040
np.linalg.norm(AR_f8, ord="bob") # type: ignore[call-overload] # pyright: ignore[reportArgumentType, reportCallIssue]
4141

42-
np.linalg.multi_dot([AR_M]) # type: ignore[list-item] # pyright: ignore[reportArgumentType, reportCallIssue]
42+
np.linalg.multi_dot([AR_M]) # type: ignore[arg-type] # pyright: ignore[reportArgumentType, reportCallIssue]

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ AR_m: _nt.Array[np.timedelta64]
66
AR_M: _nt.Array[np.datetime64]
77
AR_O: _nt.Array[np.object_]
88

9-
np.fix(AR_c) # type: ignore[arg-type] # pyright: ignore[reportArgumentType, reportCallIssue]
10-
np.fix(AR_m) # type: ignore[arg-type] # pyright: ignore[reportArgumentType, reportCallIssue]
11-
np.fix(AR_M) # type: ignore[arg-type] # pyright: ignore[reportArgumentType, reportCallIssue]
9+
np.fix(AR_c) # type: ignore[type-var] # pyright: ignore[reportArgumentType, reportCallIssue]
10+
np.fix(AR_m) # type: ignore[type-var] # pyright: ignore[reportArgumentType, reportCallIssue]
11+
np.fix(AR_M) # type: ignore[type-var] # pyright: ignore[reportArgumentType, reportCallIssue]
1212

1313
np.isposinf(AR_c) # type: ignore[arg-type] # pyright: ignore[reportArgumentType, reportCallIssue]
1414
np.isposinf(AR_m) # type: ignore[arg-type] # pyright: ignore[reportArgumentType, reportCallIssue]

0 commit comments

Comments
 (0)