Skip to content

Commit

Permalink
remove unnecessary copy argument from __array__ method in MemoryCache…
Browse files Browse the repository at this point in the history
…dArray
  • Loading branch information
andersy005 committed Nov 1, 2024
1 parent 50791e0 commit 014e7cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/core/indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ def _ensure_cached(self):
def __array__(
self, dtype: np.typing.DTypeLike = None, /, *, copy: bool | None = None
) -> np.ndarray:
return np.asarray(self.get_duck_array(), dtype=dtype, copy=copy)
return np.asarray(self.get_duck_array(), dtype=dtype)

def get_duck_array(self):
self._ensure_cached()
Expand Down

0 comments on commit 014e7cf

Please sign in to comment.