Skip to content

Commit

Permalink
don't import in the function call
Browse files Browse the repository at this point in the history
  • Loading branch information
lgray authored Dec 7, 2024
1 parent cee57c8 commit 57a2472
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/dask_awkward/lib/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
is_empty_slice,
)

if _dask_uses_tasks:
from dask._task_spec import TaskRef

if TYPE_CHECKING:
from awkward.contents.content import Content
from awkward.forms.form import Form
Expand Down Expand Up @@ -1933,8 +1936,6 @@ def partitionwise_layer(
numblocks[arg.name] = (1,)
elif isinstance(arg, Delayed):
if _dask_uses_tasks:
from dask._task_spec import TaskRef

pairs.extend([TaskRef(arg.key), None])
else:
pairs.extend([arg.key, None])
Expand Down

0 comments on commit 57a2472

Please sign in to comment.