Skip to content

Commit

Permalink
Update daskmanager.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Illviljan committed Apr 14, 2024
1 parent 5c4ecab commit c2fb035
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions xarray/namedarray/daskmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,12 @@ def from_array(

def compute(
self, *data: chunkedduckarray[Any, _DType] | Any, **kwargs: Any
) -> tuple[np.ndarray[Any, np.dtype[np.generic]], ...]:
) -> tuple[duckarray[Any, _DType], ...]:
from dask.base import compute

return compute(*data, **kwargs) # type: ignore[no-untyped-call, no-any-return]
out: tuple[np.ndarray[Any, np.dtype[np.generic]], ...]
out = compute(*data, **kwargs) # type: ignore[no-untyped-call]
return out

@property
def array_api(self) -> ModuleType:
Expand Down

0 comments on commit c2fb035

Please sign in to comment.