From e5638290bacbcad7f2f155caf317388e8f5f1d0c Mon Sep 17 00:00:00 2001 From: Joseph Hamman Date: Mon, 26 Aug 2024 11:00:44 -0700 Subject: [PATCH] fix: numpy 1.24 compat for Array.__array__ --- zarr/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zarr/core.py b/zarr/core.py index 08234e193c..d13da27bc6 100644 --- a/zarr/core.py +++ b/zarr/core.py @@ -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): """