Skip to content

Commit 2810433

Browse files
committed
docs: fixes
Signed-off-by: nstarman <[email protected]>
1 parent ea70b02 commit 2810433

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

spec/draft/API_specification/array_object.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ A conforming implementation of the array API standard must provide and support a
163163
- `operator.ne(x1, x2) <https://docs.python.org/3/library/operator.html#operator.ne>`_
164164
- `operator.__ne__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__ne__>`_
165165

166-
:meth:`.array.__lt__`, :meth:`.array.__le__`, :meth:`.array.__gt__`, :meth:`.array.__ge__` are only defined for arrays having real-valued data types. Other comparison operators should be defined for arrays having any data type.
166+
:meth:`.Array.__lt__`, :meth:`.Array.__le__`, :meth:`.Array.__gt__`, :meth:`.Array.__ge__` are only defined for arrays having real-valued data types. Other comparison operators should be defined for arrays having any data type.
167167
For backward compatibility, conforming implementations may support complex numbers; however, inequality comparison of complex numbers is unspecified and thus implementation-dependent (see :ref:`complex-number-ordering`).
168168

169169
In-place Operators

src/array_api_stubs/_draft/array_object.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def __dlpack__(
370370
dl_device: Optional[tuple[enum.Enum, int]]
371371
the DLPack device type. Default is ``None``, meaning the exported capsule
372372
should be on the same device as ``self`` is. When specified, the format
373-
must be a 2-tuple, following that of the return value of :meth:`array.__dlpack_device__`.
373+
must be a 2-tuple, following that of the return value of :meth:`Array.__dlpack_device__`.
374374
If the device type cannot be handled by the producer, this function must
375375
raise ``BufferError``.
376376
@@ -492,7 +492,7 @@ def __dlpack_device__(self, /) -> tuple[Enum, int]:
492492
493493
Returns
494494
-------
495-
device: Tuple[Enum, int]
495+
device: Tuple[enum.Enum, int]
496496
a tuple ``(device_type, device_id)`` in DLPack format. Valid device type enum members are:
497497
498498
::

src/array_api_stubs/_draft/creation_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def from_dlpack(
268268
269269
Notes
270270
-----
271-
See :meth:`array.__dlpack__` for implementation suggestions for `from_dlpack` in
271+
See :meth:`Array.__dlpack__` for implementation suggestions for `from_dlpack` in
272272
order to handle DLPack versioning correctly.
273273
274274
A way to move data from two array libraries to the same device (assumed supported by both libraries) in

0 commit comments

Comments
 (0)