Skip to content

Commit

Permalink
remove useless DaskArray type in scalar or array type
Browse files Browse the repository at this point in the history
  • Loading branch information
headtr1ck committed Jul 12, 2024
1 parent ab4dbf5 commit 27db395
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xarray/core/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion xarray/tests/test_groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 27db395

Please sign in to comment.