Skip to content

Commit

Permalink
feat: add __dask_tokenize__ hook (#3017)
Browse files Browse the repository at this point in the history
* feat: add __dask_tokenize__ hook

* style: pre-commit fixes

* just use id()

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jim Pivarski <[email protected]>
  • Loading branch information
3 people authored Mar 21, 2024
1 parent 1bf2c9f commit f2e777f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/awkward/highlevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@ def __init_subclass__(cls, **kwargs):

_histogram_module_ = awkward._connect.hist

def __dask_tokenize__(self):
return id(self)

def _update_class(self):
self._numbaview = None
self.__class__ = get_array_class(self._layout, self._behavior)
Expand Down

0 comments on commit f2e777f

Please sign in to comment.