Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Illviljan committed Sep 27, 2024
1 parent 750c970 commit 9e35d1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xarray/tests/test_namedarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,8 @@ def test_warn_on_repeated_dimension_names(self) -> None:


def test_repr() -> None:
x = NamedArray(("x",), np.array([1, 2, 3]))
x: NamedArray[Any, np.dtype[np.int64]]
x = NamedArray(("x",), np.array([1, 2, 3], dtype=np.int64))

# Reprs should not crash:
r = x.__repr__()
Expand Down

0 comments on commit 9e35d1d

Please sign in to comment.