diff --git a/src/dask_awkward/lib/core.py b/src/dask_awkward/lib/core.py index a7a6458f..86fd8f02 100644 --- a/src/dask_awkward/lib/core.py +++ b/src/dask_awkward/lib/core.py @@ -1357,6 +1357,13 @@ def clear_divisions(self) -> None: """Clear the divisions of a Dask Awkward Collection.""" self._divisions = (None,) * (self.npartitions + 1) + def __array_function__(self, func, types, args, kwargs): + raise NotImplementedError( + "overloads of NumPy functions are not supported in dask-awkward. " + "Instead, use the Awkward Array equivalent, e.g. `ak.all` instead " + "of `np.all`" + ) + def __awkward_function__(self, func, array_likes, args, kwargs): import dask_awkward