From 5df8ec9673a73e71554c8f53cc6edb60533c5d17 Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Wed, 20 Jan 2021 17:56:37 -0700 Subject: Fix some incorrect type annotations in the array API submodule (see https://github.com/data-apis/array-api/pull/116) --- numpy/_array_api/_manipulation_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/_array_api/_manipulation_functions.py') diff --git a/numpy/_array_api/_manipulation_functions.py b/numpy/_array_api/_manipulation_functions.py index f79ef1f9c..a4247f2b5 100644 --- a/numpy/_array_api/_manipulation_functions.py +++ b/numpy/_array_api/_manipulation_functions.py @@ -53,7 +53,7 @@ def squeeze(x: array, /, *, axis: Optional[Union[int, Tuple[int, ...]]] = None) """ return np.squeeze(x, axis=axis) -def stack(arrays: Tuple[array], /, *, axis: Optional[int] = 0) -> array: +def stack(arrays: Tuple[array], /, *, axis: int = 0) -> array: """ Array API compatible wrapper for :py:func:`np.stack `. -- cgit v1.2.1