Open gcaria opened 2 years ago
Additionally, because open_zarr
default to decode_coords = True
, decode_coords
is interpreted as a boolean by static type checkers and type check will fail if we pass a string.
We should have:
decode_coords: Literal["coordinates", "all"] | bool | None = None,
What is your issue?
The docstring of
open_zarr
fails to mention thatdecode_coords
could be a string too (and what the accepted string values mean)https://github.com/pydata/xarray/blob/fed852073eee883c0ed1e13e28e508ff0cf9d5c1/xarray/backends/zarr.py#L687-L689