We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ad72df commit c8e4d60Copy full SHA for c8e4d60
spec/draft/extensions/sparse_interchange.rst
@@ -10,7 +10,8 @@ Extension name and usage
10
11
If implemented, this extension must be retrievable via::
12
13
- >>> if hasattr(x, 'sparse'):
+ >>> xp = x.__array_namespace__()
14
+ >>> if hasattr(xp, 'sparse'):
15
>>> # Use the extension
16
17
.. currentmodule:: array_api
src/array_api_stubs/_draft/array_object.py
@@ -1282,7 +1282,7 @@ def __binsparse__(
1282
Raises
1283
------
1284
TypeError
1285
- If ``descriptor`` is not ``None``, and the array library does not support converting to it.
+ If ``descriptor`` is not ``None``, and the array library does not support converting to a format specified by it.
1286
"""
1287
1288
0 commit comments