Skip to content

Commit 65cf9c7

Browse files
committed
docs: use proper formatting
1 parent ce7ac72 commit 65cf9c7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/array_api_stubs/_draft/set_functions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def unique_all(x: array, /) -> Tuple[array, array, array, array]:
3737
3838
- As ``nan`` values compare as ``False``, ``nan`` values **should** be considered distinct.
3939
- As complex floating-point values having at least one ``nan`` component compare as ``False``, complex floating-point values having ``nan`` components **should** be considered distinct.
40-
- As ``-0`` and ``+0`` compare as ``True``, signed zeros **should** not be considered distinct, and the corresponding unique element **may** be implementation-dependent (e.g., an implementation **may** choose to return ``-0`` if ``-0`` occurs before ``+0``).
40+
- As ``-0`` and ``+0`` compare as ``True``, signed zeros **should not** be considered distinct, and the corresponding unique element **may** be implementation-dependent (e.g., an implementation **may** choose to return ``-0`` if ``-0`` occurs before ``+0``).
4141
4242
As signed zeros are not distinct, using ``inverse_indices`` to reconstruct the input array is not guaranteed to return an array having the exact same values.
4343
@@ -82,7 +82,7 @@ def unique_counts(x: array, /) -> Tuple[array, array]:
8282
8383
- As ``nan`` values compare as ``False``, ``nan`` values **should** be considered distinct.
8484
- As complex floating-point values having at least one ``nan`` component compare as ``False``, complex floating-point values having ``nan`` components **should** be considered distinct.
85-
- As ``-0`` and ``+0`` compare as ``True``, signed zeros **should** not be considered distinct, and the corresponding unique element **may** be implementation-dependent (e.g., an implementation **may** choose to return ``-0`` if ``-0`` occurs before ``+0``).
85+
- As ``-0`` and ``+0`` compare as ``True``, signed zeros **should not** be considered distinct, and the corresponding unique element **may** be implementation-dependent (e.g., an implementation **may** choose to return ``-0`` if ``-0`` occurs before ``+0``).
8686
8787
Each ``nan`` value and each complex floating-point value having a ``nan`` component **should** have a count of one, while the counts for signed zeros **should** be aggregated as a single count.
8888
@@ -125,7 +125,7 @@ def unique_inverse(x: array, /) -> Tuple[array, array]:
125125
126126
- As ``nan`` values compare as ``False``, ``nan`` values **should** be considered distinct.
127127
- As complex floating-point values having at least one ``nan`` component compare as ``False``, complex floating-point values having ``nan`` components **should** be considered distinct.
128-
- As ``-0`` and ``+0`` compare as ``True``, signed zeros **should** not be considered distinct, and the corresponding unique element **may** be implementation-dependent (e.g., an implementation **may** choose to return ``-0`` if ``-0`` occurs before ``+0``).
128+
- As ``-0`` and ``+0`` compare as ``True``, signed zeros **should not** be considered distinct, and the corresponding unique element **may** be implementation-dependent (e.g., an implementation **may** choose to return ``-0`` if ``-0`` occurs before ``+0``).
129129
130130
As signed zeros are not distinct, using ``inverse_indices`` to reconstruct the input array is not guaranteed to return an array having the exact same values.
131131
@@ -165,7 +165,7 @@ def unique_values(x: array, /) -> array:
165165
166166
- As ``nan`` values compare as ``False``, ``nan`` values **should** be considered distinct.
167167
- As complex floating-point values having at least one ``nan`` component compare as ``False``, complex floating-point values having ``nan`` components **should** be considered distinct.
168-
- As ``-0`` and ``+0`` compare as ``True``, signed zeros **should** not be considered distinct, and the corresponding unique element **may** be implementation-dependent (e.g., an implementation **may** choose to return ``-0`` if ``-0`` occurs before ``+0``).
168+
- As ``-0`` and ``+0`` compare as ``True``, signed zeros **should not** be considered distinct, and the corresponding unique element **may** be implementation-dependent (e.g., an implementation **may** choose to return ``-0`` if ``-0`` occurs before ``+0``).
169169
170170
.. versionchanged:: 2022.12
171171
Added complex data type support.

0 commit comments

Comments
 (0)