Skip to content

Commit 55df20c

Browse files
committed
Always return tuple from meshgrid()
1 parent 71d3c23 commit 55df20c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpnp/dpnp_iface_arraycreation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3111,7 +3111,7 @@ def meshgrid(*xi, copy=True, sparse=False, indexing="xy"):
31113111
)
31123112

31133113
if ndim < 1:
3114-
return []
3114+
return ()
31153115

31163116
s0 = (1,) * ndim
31173117
output = [
@@ -3132,7 +3132,7 @@ def meshgrid(*xi, copy=True, sparse=False, indexing="xy"):
31323132
if copy:
31333133
output = [dpt.copy(x) for x in output]
31343134

3135-
return [dpnp_array._create_from_usm_ndarray(x) for x in output]
3135+
return tuple(dpnp_array._create_from_usm_ndarray(x) for x in output)
31363136

31373137

31383138
class MGridClass:

0 commit comments

Comments
 (0)