Skip to content

Commit caca863

Browse files
steff456kgryte
andauthored
Add review changes
Co-authored-by: Athan <kgryte@gmail.com>
1 parent 825cec7 commit caca863

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/array_api_stubs/_draft/data_type_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def astype(
4444
copy: bool
4545
specifies whether to copy an array when the specified ``dtype`` matches the data type of the input array ``x``. If ``True``, a newly allocated array must always be returned. If ``False`` and the specified ``dtype`` matches the data type of the input array, the input array must be returned; otherwise, a newly allocated array must be returned. Default: ``True``.
4646
device: Optional[device]
47-
device on which to place the created array. Default: ``None``.
47+
device on which to place the created array. If ``device`` is ``None``, the output array device must be inferred from ``x``. Default: ``None``.
4848
4949
Returns
5050
-------

0 commit comments

Comments
 (0)