Skip to content

Commit cae0ab9

Browse files
committed
Don't hard require same-kind arrays for builtin cast methods
1 parent 201290c commit cae0ab9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: spec/API_specification/array_api/array_object.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def __bool__(self: array, /) -> bool:
229229
Parameters
230230
----------
231231
self: array
232-
zero-dimensional array instance. Must have a boolean data type.
232+
zero-dimensional array instance. Should have a boolean data type.
233233
234234
Returns
235235
-------
@@ -244,7 +244,7 @@ def __complex__(self: array, /) -> bool:
244244
Parameters
245245
----------
246246
self: array
247-
zero-dimensional array instance. Must have a complex data type.
247+
zero-dimensional array instance. Should have a complex data type.
248248
249249
Returns
250250
-------
@@ -361,7 +361,7 @@ def __float__(self: array, /) -> float:
361361
Parameters
362362
----------
363363
self: array
364-
zero-dimensional array instance. Must have a real-valued floating-point data type.
364+
zero-dimensional array instance. Should have a real-valued floating-point data type.
365365
366366
Returns
367367
-------
@@ -498,7 +498,7 @@ def __index__(self: array, /) -> int:
498498
Parameters
499499
----------
500500
self: array
501-
zero-dimensional array instance. Must have an integer data type.
501+
zero-dimensional array instance. Should have an integer data type.
502502
503503
Returns
504504
-------
@@ -513,7 +513,7 @@ def __int__(self: array, /) -> int:
513513
Parameters
514514
----------
515515
self: array
516-
zero-dimensional array instance. Must have an integer data type.
516+
zero-dimensional array instance. Should have an integer data type.
517517
518518
Returns
519519
-------

0 commit comments

Comments
 (0)