diff --git a/xarray/core/types.py b/xarray/core/types.py index 20d94de5116..786ab5973b1 100644 --- a/xarray/core/types.py +++ b/xarray/core/types.py @@ -178,7 +178,7 @@ def copy( T_ExtensionArray = TypeVar("T_ExtensionArray", bound=pd.api.extensions.ExtensionArray) -ScalarOrArray = Union["ArrayLike", np.generic, np.ndarray, "DaskArray"] +ScalarOrArray = Union["ArrayLike", np.generic] VarCompatible = Union["Variable", "ScalarOrArray"] DaCompatible = Union["DataArray", "VarCompatible"] DsCompatible = Union["Dataset", "DaCompatible"] diff --git a/xarray/tests/test_groupby.py b/xarray/tests/test_groupby.py index 5446ea0a540..469e5a3b1f2 100644 --- a/xarray/tests/test_groupby.py +++ b/xarray/tests/test_groupby.py @@ -1481,7 +1481,7 @@ def test_groupby_math(self) -> None: with pytest.raises(TypeError, match=r"only support binary ops"): grouped + grouped # type: ignore[type-var] with pytest.raises(TypeError, match=r"in-place operations"): - array += grouped + array += grouped # type: ignore[arg-type] def test_groupby_math_not_aligned(self) -> None: array = DataArray(