Skip to content

Commit

Permalink
Re-enable mypy checks for parse_dims unit tests (#8618)
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky authored Jan 18, 2024
1 parent 24ad846 commit f4d2609
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xarray/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def test_infix_dims_errors(supplied, all_):
pytest.param(..., ..., id="ellipsis"),
],
)
def test_parse_dims(dim, expected):
def test_parse_dims(dim, expected) -> None:
all_dims = ("a", "b", 1, ("b", "c")) # selection of different Hashables
actual = utils.parse_dims(dim, all_dims, replace_none=False)
assert actual == expected
Expand Down Expand Up @@ -298,7 +298,7 @@ def test_parse_dims_replace_none(dim: None | ellipsis) -> None:
pytest.param(["x", 2], id="list_missing_all"),
],
)
def test_parse_dims_raises(dim):
def test_parse_dims_raises(dim) -> None:
all_dims = ("a", "b", 1, ("b", "c")) # selection of different Hashables
with pytest.raises(ValueError, match="'x'"):
utils.parse_dims(dim, all_dims, check_exists=True)
Expand All @@ -314,7 +314,7 @@ def test_parse_dims_raises(dim):
pytest.param(["a", ..., "b"], ("a", "c", "b"), id="list_with_middle_ellipsis"),
],
)
def test_parse_ordered_dims(dim, expected):
def test_parse_ordered_dims(dim, expected) -> None:
all_dims = ("a", "b", "c")
actual = utils.parse_ordered_dims(dim, all_dims)
assert actual == expected
Expand Down

0 comments on commit f4d2609

Please sign in to comment.