While computing a dask array using the ones() (or zeros) API, and using dtype as a positional (second) argument, the following error occurs:
TypeError: ones() got multiple values for argument 'dtype'
The documentation states that they follow the signature of the numpy variants exactly, which would not require dtype to be a keyword argument.
This works:
da.ones((3, 3), dtype='bool').compute()
But this does not:
da.ones((3, 3), 'bool').compute()
Using dask-2.17.2-py_0 with Python 3.6.9 installed using conda on MacOS 10.15.5