Skip to content

Commit

Permalink
#22 Fix wrong docstring creation
Browse files Browse the repository at this point in the history
  • Loading branch information
astropenguin committed Aug 4, 2020
1 parent 72d15d3 commit bd8a8c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray_custom/bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def from_dataarrayclass(cls, dataarrayclass: type) -> "Doc":
"""Create an Doc instace from a DataArray class."""
desc = sub(r"[\n|\s]+", " ", dataarrayclass.desc)
dims = f"dims={dataarrayclass.dims!r}"
dtype = f"dims={dataarrayclass.dtype!r}"
dtype = f"dtype={dataarrayclass.dtype!r}"

return cls(f"({dims}, {dtype}) {desc}")

Expand Down

0 comments on commit bd8a8c9

Please sign in to comment.