Skip to content

Commit 302cf1a

Browse files
committed
change signature
1 parent 419041b commit 302cf1a

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
@@ -13,7 +13,7 @@
1313

1414

1515
def astype(
16-
x: array, dtype: dtype, /, *, copy: bool = True, device: Optional[device] = None
16+
x: array, dtype_or_kind: Union[dtype, str], /, *, copy: bool = True, device: Optional[device] = None
1717
) -> array:
1818
"""
1919
Copies an array to a specified data type irrespective of :ref:`type-promotion` rules, or to a *kind* of data type.

0 commit comments

Comments
 (0)