Skip to content

Commit 886ceeb

Browse files
committed
Fix reveal test
1 parent e2803ad commit 886ceeb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

numpy/_core/shape_base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,8 @@ def unstack(x, /, *, axis=0):
477477
----------
478478
x : ndarray
479479
The array to be unstacked.
480+
axis : int, optional
481+
Axis along which the array will be split. Default: ``0``.
480482
481483
Returns
482484
-------

numpy/typing/tests/data/reveal/shape_base.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,5 @@ assert_type(np.kron(AR_f8, AR_f8), npt.NDArray[np.floating[Any]])
5454
assert_type(np.tile(AR_i8, 5), npt.NDArray[np.int64])
5555
assert_type(np.tile(AR_LIKE_f8, [2, 2]), npt.NDArray[Any])
5656

57-
assert_type(np.unstack(AR_i8, axis=0), list[npt.NDArray[np.int64]])
58-
assert_type(np.unstack(AR_LIKE_f8, axis=0), list[npt.NDArray[Any]])
57+
assert_type(np.unstack(AR_i8, axis=0), tuple[npt.NDArray[np.int64]])
58+
assert_type(np.unstack(AR_LIKE_f8, axis=0), tuple[npt.NDArray[Any]])

0 commit comments

Comments
 (0)