diff --git a/xarray/core/dataarray.py b/xarray/core/dataarray.py index b8e63c9f2f7..aa621a3c428 100644 --- a/xarray/core/dataarray.py +++ b/xarray/core/dataarray.py @@ -2887,7 +2887,7 @@ def from_dict(cls, d: dict) -> "DataArray": .. code:: python - d = {"dims": ("t"), "data": x} + d = {"dims": "t", "data": x} d = { "coords": {"t": {"dims": "t", "data": t, "attrs": {"units": "s"}}},