(self)
| 594 | return normalize_token((type(self), self._dims, self.data, self._attrs or None)) |
| 595 | |
| 596 | def __dask_graph__(self) -> Graph | None: |
| 597 | if is_duck_dask_array(self._data): |
| 598 | return self._data.__dask_graph__() |
| 599 | else: |
| 600 | # TODO: Should this method just raise instead? |
| 601 | # raise NotImplementedError("Method requires self.data to be a dask array") |
| 602 | return None |
| 603 | |
| 604 | def __dask_keys__(self) -> NestedKeys: |
| 605 | if is_duck_dask_array(self._data): |
nothing calls this directly
no test coverage detected