Skip to content

Commit 53d6094

Browse files
committed
make dask-specific kwargs explicit in from_array
1 parent b15411c commit 53d6094

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Diff for: xarray/core/daskmanager.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,13 @@ def is_chunked_array(self, data: Any) -> bool:
2929
def chunks(self, data: "DaskArray") -> T_Chunks:
3030
return data.chunks
3131

32-
def from_array(self, data, chunks, **kwargs) -> "DaskArray":
32+
def from_array(
33+
self, data, chunks, name=None, lock=False, inline_array=False
34+
) -> "DaskArray":
3335
import dask.array as da
3436

3537
from xarray.core import indexing
3638

37-
# dask-specific kwargs
38-
name = kwargs.pop("name", None)
39-
lock = kwargs.pop("lock", False)
40-
inline_array = kwargs.pop("inline_array", False)
41-
4239
if is_duck_dask_array(data):
4340
data = self.rechunk(data, chunks)
4441
else:

0 commit comments

Comments
 (0)