Skip to content

Commit af981b9

Browse files
committed
Fix references and add missing __all__
1 parent d92541a commit af981b9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

spec/API_specification/signatures/array_object.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def __bool__(self: array, /) -> bool:
237237

238238
def __dlpack__(self: array, /, *, stream: Optional[Union[int, Any]] = None) -> PyCapsule:
239239
"""
240-
Exports the array for consumption by :ref:`function-from_dlpack` as a DLPack capsule.
240+
Exports the array for consumption by :func:`signatures.creation_functions.from_dlpack` as a DLPack capsule.
241241
242242
Parameters
243243
----------
@@ -292,7 +292,7 @@ def __dlpack__(self: array, /, *, stream: Optional[Union[int, Any]] = None) -> P
292292

293293
def __dlpack_device__(self: array, /) -> Tuple[Enum, int]:
294294
"""
295-
Returns device type and device ID in DLPack format. Meant for use within :ref:`function-from_dlpack`.
295+
Returns device type and device ID in DLPack format. Meant for use within :func:`signatures.creation_functions.from_dlpack`.
296296
297297
Parameters
298298
----------

spec/API_specification/signatures/creation_functions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,3 +368,5 @@ def zeros_like(x: array, /, *, dtype: Optional[dtype] = None, device: Optional[d
368368
out: array
369369
an array having the same shape as ``x`` and filled with zeros.
370370
"""
371+
372+
__all__ = ['arange', 'asarray', 'empty', 'empty_like', 'eye', 'from_dlpack', 'full', 'full_like', 'linspace', 'meshgrid', 'ones', 'ones_like', 'tril', 'triu', 'zeros', 'zeros_like']

0 commit comments

Comments
 (0)