Skip to content

Commit

Permalink
add tolist() to typetracer array
Browse files Browse the repository at this point in the history
  • Loading branch information
pfackeldey committed Feb 20, 2025
1 parent cde5b1b commit 4081597
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/awkward/_nplikes/typetracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,9 @@ def __array_ufunc__(self, ufunc, method, *inputs, **kwargs):
raise ValueError("TypeTracerArray does not support kwargs for ufuncs")
return self.nplike.apply_ufunc(ufunc, method, inputs, kwargs)

def tolist(self) -> list:
raise RuntimeError("cannot realise an unknown value")

def __bool__(self) -> bool:
raise RuntimeError("cannot realise an unknown value")

Expand Down

0 comments on commit 4081597

Please sign in to comment.