Skip to content

Commit 6c4bdf2

Browse files
committed
run precommit
1 parent 6e0e9e9 commit 6c4bdf2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

xarray/core/indexing.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,10 @@ def __repr__(self) -> str:
768768

769769
def _wrap_numpy_scalars(array):
770770
"""Wrap NumPy scalars in 0d arrays."""
771-
if np.ndim(array) == 0 and (isinstance(array, np.generic) or not (is_duck_array(array) or isinstance(array, NDArrayMixin))):
771+
if np.ndim(array) == 0 and (
772+
isinstance(array, np.generic)
773+
or not (is_duck_array(array) or isinstance(array, NDArrayMixin))
774+
):
772775
return np.array(array)
773776
elif hasattr(array, "dtype"):
774777
return array

xarray/tests/test_backends.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2275,7 +2275,7 @@ def test_write_inconsistent_chunks(self) -> None:
22752275
@pytest.mark.flaky
22762276
def test_roundtrip_coordinates(self) -> None:
22772277
super().test_roundtrip_coordinates()
2278-
2278+
22792279
@requires_cftime
22802280
def test_roundtrip_cftime_bnds(self):
22812281
# Regression test for issue #7794

0 commit comments

Comments
 (0)