Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 19, 2024
1 parent 1b9845d commit 81b8a90
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion xarray/core/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -2925,7 +2925,12 @@ def _validate_interp_indexers(
elif is_scalar(v):
yield k, Variable((), v, attrs=self.coords[k].attrs)
elif isinstance(v, np.ndarray):
yield k, Variable(dims=(k,), data=v, attrs=self.coords[k].attrs, fastpath=True)
yield (
k,
Variable(
dims=(k,), data=v, attrs=self.coords[k].attrs, fastpath=True
),
)
else:
raise TypeError(type(v))

Expand Down

0 comments on commit 81b8a90

Please sign in to comment.