Skip to content

Commit

Permalink
only check blockwise for Task; grab Task, TaskRef from blockwise
Browse files Browse the repository at this point in the history
  • Loading branch information
lgray authored Dec 17, 2024
1 parent 731ce1d commit 64b2a66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dask_awkward/layers/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@

from dask_awkward.utils import LazyInputsDict

_dask_uses_tasks = hasattr(dask, "_task_spec") and hasattr(dask.blockwise, "Task")
_dask_uses_tasks = hasattr(dask.blockwise, "Task")

if _dask_uses_tasks:
from dask._task_spec import Task, TaskRef
from dask.blockwise import Task, TaskRef

if TYPE_CHECKING:
from awkward import Array as AwkwardArray
Expand Down

0 comments on commit 64b2a66

Please # to comment.