diff --git a/xarray/tests/test_namedarray.py b/xarray/tests/test_namedarray.py index d60c269c7f1..9bd6b342170 100644 --- a/xarray/tests/test_namedarray.py +++ b/xarray/tests/test_namedarray.py @@ -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__()