Skip to content

Commit 2368c61

Browse files
committed
Add missing note to __lt__
1 parent c014045 commit 2368c61

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/array_api_stubs/_draft/array_object.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -829,6 +829,9 @@ def __lt__(self: array, other: Union[int, float, array], /) -> array:
829829
830830
.. note::
831831
Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api.less`.
832+
833+
.. note::
834+
Comparison of arrays without a corresponding promotable data type (see :ref:`type-promotion`) is undefined and thus implementation-dependent.
832835
"""
833836

834837
def __matmul__(self: array, other: array, /) -> array:

0 commit comments

Comments
 (0)