We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 419041b commit 302cf1aCopy full SHA for 302cf1a
src/array_api_stubs/_draft/data_type_functions.py
@@ -13,7 +13,7 @@
13
14
15
def astype(
16
- x: array, dtype: dtype, /, *, copy: bool = True, device: Optional[device] = None
+ x: array, dtype_or_kind: Union[dtype, str], /, *, copy: bool = True, device: Optional[device] = None
17
) -> array:
18
"""
19
Copies an array to a specified data type irrespective of :ref:`type-promotion` rules, or to a *kind* of data type.
0 commit comments