Skip to content

Commit

Permalink
ignore device
Browse files Browse the repository at this point in the history
  • Loading branch information
lithomas1 authored Jan 15, 2025
1 parent 5aa1333 commit 691c27b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions array_api_compat/dask/array/_aliases.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,7 @@ def astype(
copy: bool = True,
device: Device | None = None
) -> Array:
if device is not None:
raise NotImplementedError(
"The device keyword is not implemented yet for "
"array-api-compat wrapped dask"
)
# TODO: respect device keyword?
if not copy and dtype == x.dtype:
return x
# dask astype doesn't respect copy=True,
Expand Down

0 comments on commit 691c27b

Please sign in to comment.