Skip to content

Commit 6a94815

Browse files
committed
Make the axis argument to squeeze() in the array_api module positional-only
See data-apis/array-api#100. Original NumPy Commit: 1ae808401951bf8c4cbff97a30505f08741d811f
1 parent 219a8f7 commit 6a94815

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array_api_strict/_manipulation_functions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def roll(x: Array, /, shift: Union[int, Tuple[int, ...]], *, axis: Optional[Unio
5252
"""
5353
return Array._new(np.roll(x._array, shift, axis=axis))
5454

55-
def squeeze(x: Array, /, axis: Optional[Union[int, Tuple[int, ...]]] = None) -> Array:
55+
def squeeze(x: Array, /, axis: Union[int, Tuple[int, ...]]) -> Array:
5656
"""
5757
Array API compatible wrapper for :py:func:`np.squeeze <numpy.squeeze>`.
5858

0 commit comments

Comments
 (0)