Skip to content

Commit 419041b

Browse files
committed
try to fix docs build
1 parent 2a82758 commit 419041b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/array_api_stubs/_draft/data_type_functions.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ def astype(
5858
out: array
5959
For ``dtype_or_kind`` a data type, an array having the specified data type.
6060
For ``dtype_or_kind`` a kind of data type:
61-
- If ``x.dtype`` is already of that kind, the data type is maintained.
62-
- Otherwise, an attempt is made to convert to the specified kind, according to the type promotion rules (see :ref:`type-promotion`).
63-
- Numeric kinds are interpreted as the lowest-precision standard data type of that kind for the purposes of type promotion.
64-
For example, ``astype(x, 'complex floating')`` will return an array with the data type ``complex64`` when ``x.dtype`` is ``float32``,
65-
since ``complex64`` is the result of promoting ``float32`` with the lowest-precision standard complex data type, ``complex64``.
66-
- For kind ``integral``, the 'lowest-precision standard data type' is interpreted as ``int8``, not ``uint8``.
61+
- If ``x.dtype`` is already of that kind, the data type is maintained.
62+
- Otherwise, an attempt is made to convert to the specified kind, according to the type promotion rules (see :ref:`type-promotion`).
63+
64+
- Numeric kinds are interpreted as the lowest-precision standard data type of that kind for the purposes of type promotion. For example, ``astype(x, 'complex floating')`` will return an array with the data type ``complex64`` when ``x.dtype`` is ``float32``, since ``complex64`` is the result of promoting ``float32`` with the lowest-precision standard complex data type, ``complex64``.
65+
- For kind ``integral``, the 'lowest-precision standard data type' is interpreted as ``int8``, not ``uint8``.
66+
6767
The returned array must have the same shape as ``x``.
6868
6969
Notes

0 commit comments

Comments
 (0)