Skip to content

Commit 0f53296

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 35f0fcd commit 0f53296

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

xarray/core/dataset.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4772,9 +4772,7 @@ def expand_dims(
47724772
if d in self.dims:
47734773
raise ValueError(f"Dimension {d} already exists.")
47744774
if d in self._variables and not utils.is_scalar(self._variables[d]):
4775-
raise ValueError(
4776-
f"{d} already exists as coordinate or variable name."
4777-
)
4775+
raise ValueError(f"{d} already exists as coordinate or variable name.")
47784776

47794777
variables: dict[Hashable, Variable] = {}
47804778
indexes: dict[Hashable, Index] = dict(self._indexes)

0 commit comments

Comments
 (0)