Skip to content

Commit 0434caa

Browse files
committed
🥅 np._core.fromnumeric workarounds for Any shape overload bugs
1 parent 8b3260a commit 0434caa

File tree

2 files changed

+288
-249
lines changed

2 files changed

+288
-249
lines changed

‎src/numpy-stubs/@test/static/accept/fromnumeric.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ assert_type(np.shape(i_1d), tuple[int])
151151
assert_type(np.shape(i_2d), tuple[int, int])
152152
assert_type(np.shape(i_3d), tuple[int, int, int])
153153
assert_type(np.shape(i_4d), tuple[int, ...])
154-
assert_type(np.shape(AR_b1), tuple[int, ...])
154+
assert_type(np.shape(AR_b1), tuple[Any, ...])
155155
assert_type(np.shape(AR_nd), tuple[int, ...])
156156
# these fail on mypy, but it works as expected with pyright/pylance
157157
assert_type(np.shape(AR_0d), tuple[()]) # type: ignore[assert-type]

0 commit comments

Comments
 (0)