Skip to content

Commit

Permalink
Rename DASK_DEVICE to _DASK_DEVICE
Browse files Browse the repository at this point in the history
  • Loading branch information
asmeurer committed Feb 26, 2024
1 parent 72919ed commit 23eb764
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions array_api_compat/common/_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class _dask_device:
def __repr__(self):
return "DASK_DEVICE"

DASK_DEVICE = _dask_device()
_DASK_DEVICE = _dask_device()

# device() is not on numpy.ndarray or dask.array and to_device() is not on numpy.ndarray
# or cupy.ndarray. They are not included in array objects of this library
Expand Down Expand Up @@ -199,7 +199,7 @@ def device(x: Array, /) -> Device:
return "cpu"
except ImportError:
pass
return DASK_DEVICE
return _DASK_DEVICE
elif is_jax_array(x):
# JAX has .device() as a method, but it is being deprecated so that it
# can become a property, in accordance with the standard. In order for
Expand Down

0 comments on commit 23eb764

Please sign in to comment.