Skip to content

Commit f4d2609

Browse files
authored
Re-enable mypy checks for parse_dims unit tests (#8618)
1 parent 24ad846 commit f4d2609

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xarray/tests/test_utils.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def test_infix_dims_errors(supplied, all_):
268268
pytest.param(..., ..., id="ellipsis"),
269269
],
270270
)
271-
def test_parse_dims(dim, expected):
271+
def test_parse_dims(dim, expected) -> None:
272272
all_dims = ("a", "b", 1, ("b", "c")) # selection of different Hashables
273273
actual = utils.parse_dims(dim, all_dims, replace_none=False)
274274
assert actual == expected
@@ -298,7 +298,7 @@ def test_parse_dims_replace_none(dim: None | ellipsis) -> None:
298298
pytest.param(["x", 2], id="list_missing_all"),
299299
],
300300
)
301-
def test_parse_dims_raises(dim):
301+
def test_parse_dims_raises(dim) -> None:
302302
all_dims = ("a", "b", 1, ("b", "c")) # selection of different Hashables
303303
with pytest.raises(ValueError, match="'x'"):
304304
utils.parse_dims(dim, all_dims, check_exists=True)
@@ -314,7 +314,7 @@ def test_parse_dims_raises(dim):
314314
pytest.param(["a", ..., "b"], ("a", "c", "b"), id="list_with_middle_ellipsis"),
315315
],
316316
)
317-
def test_parse_ordered_dims(dim, expected):
317+
def test_parse_ordered_dims(dim, expected) -> None:
318318
all_dims = ("a", "b", "c")
319319
actual = utils.parse_ordered_dims(dim, all_dims)
320320
assert actual == expected

0 commit comments

Comments
 (0)