diff --git a/src/awkward/index.py b/src/awkward/index.py index 70bcb254bd..310725dcb3 100644 --- a/src/awkward/index.py +++ b/src/awkward/index.py @@ -145,10 +145,10 @@ def __cuda_array_interface__(self): def __array_interface__(self): return self._data.__array_interface__ - def __dlpack__(self) -> tuple[int, int]: + def __dlpack_device__(self) -> tuple[int, int]: return self._data.__dlpack_device__() - def __dlpack_device__(self, stream: Any = None) -> Any: + def __dlpack__(self, stream: Any = None) -> Any: if stream is None: return self._data.__dlpack__() else: