Skip to content

Commit c8e4d60

Browse files
committed
Modify protocol to be more like DLPack.
1 parent 0ad72df commit c8e4d60

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

spec/draft/extensions/sparse_interchange.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ Extension name and usage
1010

1111
If implemented, this extension must be retrievable via::
1212

13-
>>> if hasattr(x, 'sparse'):
13+
>>> xp = x.__array_namespace__()
14+
>>> if hasattr(xp, 'sparse'):
1415
>>> # Use the extension
1516

1617
.. currentmodule:: array_api

src/array_api_stubs/_draft/array_object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1282,7 +1282,7 @@ def __binsparse__(
12821282
Raises
12831283
------
12841284
TypeError
1285-
If ``descriptor`` is not ``None``, and the array library does not support converting to it.
1285+
If ``descriptor`` is not ``None``, and the array library does not support converting to a format specified by it.
12861286
"""
12871287

12881288

0 commit comments

Comments
 (0)