dask.array
module should expose dtype objects and the isdtype
function
#10387
Labels
needs attention
It's been a while since this was pushed on. Needs attention from the owner or a maintainer.
needs triage
Needs a response from a contributor
See:
It's not clear if the dtype objects should be all exposed as attributes of the top level module but this usually the case in other implementations of the spec:
Since dask arrays use numpy arrays by default, I think that dask could just alias
numpy.float32
asdask.array.float32
(and similarly for the other numpy dtypes).Unfortunately,
numpy.isdtype
does not exist yet. Maybedask.array
could lazily aliasnumpy.array_api.isdtype
asdask.array.isdtype
with some module level__getattr__
to not raise thenumpy.array_api
experimental warning by default.Alternative,
dask.array
could ship its own implementation ofisdtype
(maybe vendoring/forking the one fromnumpy.array_api
).The text was updated successfully, but these errors were encountered: