Skip to content

Commit d1b92b5

Browse files
authored
fix: numpy 1.24 compat for Array.__array__ (#2123)
1 parent 025e103 commit d1b92b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zarr/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,8 +575,8 @@ def __eq__(self, other):
575575
# store comparison
576576
)
577577

578-
def __array__(self, dtype=None, copy=None):
579-
return np.array(self[...], dtype=dtype, copy=copy)
578+
def __array__(self, *args, **kwargs):
579+
return np.array(self[...], *args, **kwargs)
580580

581581
def islice(self, start=None, end=None):
582582
"""

0 commit comments

Comments
 (0)