Skip to content

Commit ab33f78

Browse files
committed
fix: backport changes to 2023.12 revision
1 parent 72a21ad commit ab33f78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/array_api_stubs/_2023_12/array_object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ def __dlpack__(
364364
``__dlpack__`` to return a capsule referencing an array whose underlying memory is
365365
accessible to the Python interpreter (represented by the ``kDLCPU`` enumerator in DLPack).
366366
If a copy must be made to enable this support but ``copy`` is set to ``False``, the
367-
function must raise ``ValueError``.
367+
function must raise ``BufferError``.
368368
369369
Other device kinds will be considered for standardization in a future version of this
370370
API standard.

0 commit comments

Comments
 (0)