Skip to content

Commit 1ae8084

Browse files
committed
Make the axis argument to squeeze() in the array_api module positional-only
See data-apis/array-api#100.
1 parent 4063752 commit 1ae8084

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/array_api/_manipulation_functions.py

Lines changed: 1 addition & 1 deletion
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)