Skip to content

Commit 7f810f8

Browse files
committed
Fix arguments for ArrayValue.__array__()
1 parent c0d44b8 commit 7f810f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/JlWrap/array.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ function init_array()
353353
@property
354354
def __array_interface__(self):
355355
return self._jl_callmethod($(pyjl_methodnum(pyjlarray_array_interface)))
356-
def __array__(self, dtype=None):
356+
def __array__(self, dtype=None, copy=None):
357357
# convert to an array-like object
358358
arr = self
359359
if not (hasattr(arr, "__array_interface__") or hasattr(arr, "__array_struct__")):
@@ -365,7 +365,7 @@ function init_array()
365365
except ImportError:
366366
numpy = None
367367
if numpy is not None:
368-
return numpy.array(arr, dtype=dtype, copy=copy, order=order)
368+
return numpy.array(arr, dtype=dtype, copy=copy)
369369
return arr
370370
def to_numpy(self, dtype=None, copy=True, order="K"):
371371
import numpy

0 commit comments

Comments
 (0)