diff --git a/xarray/backends/api.py b/xarray/backends/api.py index 5e3b636e8e3..3ef7f3c06e6 100644 --- a/xarray/backends/api.py +++ b/xarray/backends/api.py @@ -398,7 +398,7 @@ def open_dataset( chunks: T_Chunks = None, cache: bool | None = None, decode_cf: bool | None = None, - mask_and_scale: bool | dict[str, bool] | None = None, + mask_and_scale: bool | Mapping[str, bool] | None = None, decode_times: bool | None = None, decode_timedelta: bool | None = None, use_cftime: bool | None = None,