Skip to content

Commit

Permalink
Update DaskManager's from_array method signature
Browse files Browse the repository at this point in the history
  • Loading branch information
andersy005 committed Feb 9, 2024
1 parent 5f9bcfc commit 9f0ad6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xarray/namedarray/daskmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ def normalize_chunks(
previous_chunks=previous_chunks,
) # type: ignore[no-untyped-call]

def from_array(self, data: Any, chunks: Any, **kwargs: Any) -> Any:
def from_array(
self, data: Any, chunks: T_Chunks | _NormalizedChunks, **kwargs: Any
) -> DaskArray | Any:
import dask.array as da

if isinstance(data, ImplicitToExplicitIndexingAdapter):
Expand Down

0 comments on commit 9f0ad6e

Please sign in to comment.