Skip to content

Commit 0cafbed

Browse files
vlad-perevezentsevantonwolfy
authored andcommitted
Fix remarks
1 parent 90f0951 commit 0cafbed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dpnp/dpnp_iface_manipulation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -571,9 +571,9 @@ def rollaxis(x1, axis, start=0):
571571
return call_origin(numpy.rollaxis, x1, axis, start)
572572

573573

574-
def squeeze(x, axis=None):
574+
def squeeze(x, /, axis=None):
575575
"""
576-
Remove single-dimensional entries from the shape of an array.
576+
Removes singleton dimensions (axes) from array `x`.
577577
578578
For full documentation refer to :obj:`numpy.squeeze`.
579579
@@ -606,7 +606,7 @@ def squeeze(x, axis=None):
606606
>>> np.squeeze(x, axis=1).shape
607607
Traceback (most recent call last):
608608
...
609-
ValueError: Cannot select an axis to squeeze out which has size not equal to one
609+
ValueError: Cannot select an axis to squeeze out which has size not equal to one.
610610
>>> np.squeeze(x, axis=2).shape
611611
(1, 3)
612612

0 commit comments

Comments
 (0)