Skip to content

Commit

Permalink
typetracer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasdavis committed Nov 15, 2023
1 parent a1b55a2 commit a776a4f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dask_awkward/lib/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
DaskAwkwardNotImplemented,
IncompatiblePartitions,
borrow_docstring,
first,
)

if TYPE_CHECKING:
Expand Down Expand Up @@ -595,6 +596,9 @@ def nan_to_num(


def _numaxis0(*integers):
f = first(integers)
if isinstance(f, TypeTracerArray):
return f
return np.sum(np.array(integers))


Expand Down

0 comments on commit a776a4f

Please sign in to comment.