Skip to content

Commit

Permalink
fix: numpy 1.24 compat for Array.__array__ (#2123)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhamman authored Aug 26, 2024
1 parent 025e103 commit d1b92b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zarr/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,8 +575,8 @@ def __eq__(self, other):
# store comparison
)

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

def islice(self, start=None, end=None):
"""
Expand Down

0 comments on commit d1b92b5

Please sign in to comment.