Skip to content

Commit 691c27b

Browse files
authored
ignore device
1 parent 5aa1333 commit 691c27b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Diff for: array_api_compat/dask/array/_aliases.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,7 @@ def astype(
4848
copy: bool = True,
4949
device: Device | None = None
5050
) -> Array:
51-
if device is not None:
52-
raise NotImplementedError(
53-
"The device keyword is not implemented yet for "
54-
"array-api-compat wrapped dask"
55-
)
51+
# TODO: respect device keyword?
5652
if not copy and dtype == x.dtype:
5753
return x
5854
# dask astype doesn't respect copy=True,

0 commit comments

Comments
 (0)