Skip to content

Commit 99ca4fa

Browse files
committed
docs: add missing Sphinx annotation
1 parent 3590b62 commit 99ca4fa

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/array_api_stubs/_2022_12/array_object.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,9 @@ def __eq__(self: array, other: Union[int, float, complex, bool, array], /) -> ar
393393
394394
.. note::
395395
Element-wise results, including special cases, must equal the results returned by the equivalent element-wise function :func:`~array_api.equal`.
396+
397+
.. versionchanged:: 2022.12
398+
Added complex data type support.
396399
"""
397400

398401
def __float__(self: array, /) -> float:

src/array_api_stubs/_2023_12/array_object.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,9 @@ def __eq__(self: array, other: Union[int, float, complex, bool, array], /) -> ar
513513
514514
.. note::
515515
Element-wise results, including special cases, must equal the results returned by the equivalent element-wise function :func:`~array_api.equal`.
516+
517+
.. versionchanged:: 2022.12
518+
Added complex data type support.
516519
"""
517520

518521
def __float__(self: array, /) -> float:

src/array_api_stubs/_draft/array_object.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,9 @@ def __eq__(self: array, other: Union[int, float, complex, bool, array], /) -> ar
515515
516516
- Element-wise results, including special cases, must equal the results returned by the equivalent element-wise function :func:`~array_api.equal`.
517517
- Comparison of arrays without a corresponding promotable data type (see :ref:`type-promotion`) is undefined and thus implementation-dependent.
518+
519+
.. versionchanged:: 2022.12
520+
Added complex data type support.
518521
"""
519522

520523
def __float__(self: array, /) -> float:

0 commit comments

Comments
 (0)