Skip to content

Commit 5d05556

Browse files
authored
Fix mypy checks (#630)
1 parent 56a6ba6 commit 5d05556

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

cf_xarray/accessor.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1814,10 +1814,6 @@ def _rewrite_values(
18141814
for k, v in value.items()
18151815
)
18161816
)
1817-
1818-
elif value is Ellipsis:
1819-
pass
1820-
18211817
else:
18221818
# things like sum which have dim
18231819
newvalue = [

cf_xarray/tests/test_accessor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -883,15 +883,15 @@ def test_add_bounds_nd_variable() -> None:
883883

884884
# 2D
885885
expected = (
886-
vertices_to_bounds( # type: ignore[misc]
886+
vertices_to_bounds(
887887
xr.DataArray(
888888
np.arange(0, 13, 3).reshape(5, 1) + np.arange(-2, 2).reshape(1, 4),
889889
dims=("x", "y"),
890890
),
891891
out_dims=("bounds", "x", "y"),
892892
)
893893
.rename("z_bounds")
894-
.assign_coords(**ds.coords)
894+
.assign_coords(**ds.coords) # type: ignore[arg-type]
895895
)
896896
actual = ds.cf.add_bounds("z").z_bounds.reset_coords(drop=True)
897897
xr.testing.assert_identical(actual, expected)

0 commit comments

Comments
 (0)