Skip to content

Commit e056cac

Browse files
Remove paren from DataArray.from_dict docstring (#6140)
1 parent 51d4d5f commit e056cac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/core/dataarray.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2887,7 +2887,7 @@ def from_dict(cls, d: dict) -> "DataArray":
28872887
28882888
.. code:: python
28892889
2890-
d = {"dims": ("t"), "data": x}
2890+
d = {"dims": "t", "data": x}
28912891
28922892
d = {
28932893
"coords": {"t": {"dims": "t", "data": t, "attrs": {"units": "s"}}},

0 commit comments

Comments
 (0)