Skip to content

Commit c522de4

Browse files
committed
Fix the type annotation for the axis argument to stack
Since the default is an integer, None is not defined.
1 parent 89fe85a commit c522de4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/API_specification/manipulation_functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ Joins a sequence of arrays along a new axis.
158158
159159
- input arrays to join. Each array must have the same shape.
160160
161-
- **axis**: _Optional\[ int ]_
161+
- **axis**: _int_
162162
163163
- axis along which the arrays will be joined. Providing an `axis` specifies the index of the new axis in the dimensions of the result. For example, if `axis` is `0`, the new axis will be the first dimension and the output array will have shape `(N, A, B, C)`; if `axis` is `1`, the new axis will be the second dimension and the output array will have shape `(A, N, B, C)`; and, if `axis` is `-1`, the new axis will be the last dimension and the output array will have shape `(A, B, C, N)`. A valid `axis` must be on the interval `[-N, N)`, where `N` is the rank (number of dimensions) of `x`. If provided an `axis` outside of the required interval, the function must raise an exception. Default: `0`.
164164

0 commit comments

Comments
 (0)