MCPcopy Index your code
hub / github.com/dask/dask / _downcast_args

Method _downcast_args

dask/array/tests/test_dispatch.py:114–121  ·  view source on GitHub ↗
(self, args)

Source from the content-addressed store, hash-verified

112 return np.asarray(self.arr, *args, **kwargs)
113
114 def _downcast_args(self, args):
115 for arg in args:
116 if isinstance(arg, type(self)):
117 yield arg.arr
118 elif isinstance(arg, (tuple, list)):
119 yield type(arg)(self._downcast_args(arg))
120 else:
121 yield arg
122
123 def __array_ufunc__(self, ufunc, method, *inputs, **kwargs):
124 inputs = tuple(self._downcast_args(inputs))

Callers 2

__array_ufunc__Method · 0.95
__array_function__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected