diff options
author | Aaron Meurer <asmeurer@gmail.com> | 2021-08-06 17:12:54 -0600 |
---|---|---|
committer | Aaron Meurer <asmeurer@gmail.com> | 2021-08-06 17:12:54 -0600 |
commit | 1ae808401951bf8c4cbff97a30505f08741d811f (patch) | |
tree | 0c6d4273f987b14bf7611f2a4b50bc6692385ce7 /numpy/array_api/_manipulation_functions.py | |
parent | 4063752757a97c444b8913947a0890f2c2387bca (diff) | |
download | numpy-1ae808401951bf8c4cbff97a30505f08741d811f.tar.gz |
Make the axis argument to squeeze() in the array_api module positional-only
See data-apis/array-api#100.
Diffstat (limited to 'numpy/array_api/_manipulation_functions.py')
-rw-r--r-- | numpy/array_api/_manipulation_functions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/array_api/_manipulation_functions.py b/numpy/array_api/_manipulation_functions.py index e68dc6fcf..33f5d5a28 100644 --- a/numpy/array_api/_manipulation_functions.py +++ b/numpy/array_api/_manipulation_functions.py @@ -52,7 +52,7 @@ def roll(x: Array, /, shift: Union[int, Tuple[int, ...]], *, axis: Optional[Unio """ return Array._new(np.roll(x._array, shift, axis=axis)) -def squeeze(x: Array, /, axis: Optional[Union[int, Tuple[int, ...]]] = None) -> Array: +def squeeze(x: Array, /, axis: Union[int, Tuple[int, ...]]) -> Array: """ Array API compatible wrapper for :py:func:`np.squeeze <numpy.squeeze>`. |