From b3d3eaafecef1600cc8aef508eafb91055e33de3 Mon Sep 17 00:00:00 2001 From: Stephan Hoyer Date: Sun, 22 Sep 2024 14:06:27 -0700 Subject: [PATCH] silence mypy error --- xarray/tests/test_datatree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xarray/tests/test_datatree.py b/xarray/tests/test_datatree.py index e009e7c47ab..9f51f5fd99f 100644 --- a/xarray/tests/test_datatree.py +++ b/xarray/tests/test_datatree.py @@ -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