Skip to content

Commit 3f9ca96

Browse files
antonwolfyvtavana
andauthored
Apply suggestions from code review
Co-authored-by: vtavana <[email protected]>
1 parent 78b766d commit 3f9ca96

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

dpnp/dpnp_array.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,12 +1285,9 @@ def shape(self):
12851285
12861286
>>> y.shape = (3, 8)
12871287
>>> y
1288-
array([[[0., 0., 0., 0.],
1289-
[0., 0., 0., 0.],
1290-
[0., 0., 0., 0.]],
1291-
[[0., 0., 0., 0.],
1292-
[0., 0., 0., 0.],
1293-
[0., 0., 0., 0.]]])
1288+
array([[ 0., 0., 0., 0., 0., 0., 0., 0.],
1289+
[ 0., 0., 0., 0., 0., 0., 0., 0.],
1290+
[ 0., 0., 0., 0., 0., 0., 0., 0.]])
12941291
>>> y.shape = (3, 6)
12951292
...
12961293
TypeError: Can not reshape array of size 24 into (3, 6)
@@ -1304,7 +1301,7 @@ def shape(self, newshape):
13041301
"""
13051302
Set new lengths of axes.
13061303
1307-
Modifies array instamcee in-place by changing its metadata about the
1304+
Modifies array instance in-place by changing its metadata about the
13081305
shape and the strides of the array, or raises `AttributeError`
13091306
exception if in-place change is not possible.
13101307

0 commit comments

Comments
 (0)