Skip to content

Commit

Permalink
silence mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
shoyer committed Sep 22, 2024
1 parent 0541f28 commit b3d3eaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/tests/test_datatree.py
Original file line number Diff line number Diff line change
Expand Up @@ -1553,7 +1553,7 @@ def test_binary_op_on_datatree(self):
def test_arithmetic_inherited_coords(self):
tree = DataTree(xr.Dataset(coords={"x": [1, 2, 3]}))
tree["/foo"] = DataTree(xr.Dataset({"bar": ("x", [4, 5, 6])}))
actual = 2 * tree # type: ignore
actual: DataTree = 2 * tree # type: ignore[assignment,operator]

actual_dataset = actual.children["foo"].to_dataset(inherited=False)
assert "x" not in actual_dataset.coords
Expand Down

0 comments on commit b3d3eaa

Please sign in to comment.