diff --git a/src/zarr/core/buffer/core.py b/src/zarr/core/buffer/core.py index f0d01566c3..c402904049 100644 --- a/src/zarr/core/buffer/core.py +++ b/src/zarr/core/buffer/core.py @@ -542,7 +542,7 @@ def all_equal(self, other: Any, equal_nan: bool = True) -> bool: # every single time we have to write data? _data, other = np.broadcast_arrays(self._data, other) return np.array_equal( - self._data, + _data, other, equal_nan=equal_nan if self._data.dtype.kind not in ("U", "S", "T", "O", "V")