diff --git a/src/awkward/_nplikes/typetracer.py b/src/awkward/_nplikes/typetracer.py index b629ac54e5..728f8ed0c6 100644 --- a/src/awkward/_nplikes/typetracer.py +++ b/src/awkward/_nplikes/typetracer.py @@ -495,6 +495,12 @@ def __int__(self) -> int: def __index__(self) -> int: raise RuntimeError("cannot realise an unknown value") + def __dlpack_device__(self) -> tuple[int, int]: + raise RuntimeError("cannot realise an unknown value") + + def __dlpack__(self, stream: Any = None) -> Any: + raise RuntimeError("cannot realise an unknown value") + def _scalar_type_of(obj) -> numpy.dtype: if is_unknown_scalar(obj):