diff --git a/xarray/backends/zarr.py b/xarray/backends/zarr.py index 197f735f950..2c6b50b3589 100644 --- a/xarray/backends/zarr.py +++ b/xarray/backends/zarr.py @@ -293,7 +293,7 @@ def extract_zarr_variable_encoding( safe_chunks=True, region=None, mode=None, - shape=None + shape=None, ): """ Extract zarr encoding dictionary from xarray Variable @@ -348,7 +348,7 @@ def extract_zarr_variable_encoding( safe_chunks=safe_chunks, region=region, mode=mode, - shape=shape + shape=shape, ) encoding["chunks"] = chunks return encoding @@ -888,7 +888,7 @@ def set_variables(self, variables, check_encoding_set, writer, unlimited_dims=No safe_chunks=self._safe_chunks, region=region, mode=self._mode, - shape=zarr_shape + shape=zarr_shape, ) if name not in existing_keys: