Skip to content

Commit 610545a

Browse files
committed
Add complex number support to positive
1 parent 5ba86db commit 610545a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/API_specification/array_api/array_object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ def __pos__(self: array, /) -> array:
789789
Parameters
790790
----------
791791
self: array
792-
array instance. Should have a real-valued data type.
792+
array instance. Should have a numeric data type.
793793
794794
Returns
795795
-------

spec/API_specification/array_api/elementwise_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ def positive(x: array, /) -> array:
10491049
Parameters
10501050
----------
10511051
x: array
1052-
input array. Should have a real-valued data type.
1052+
input array. Should have a numeric data type.
10531053
10541054
Returns
10551055
-------

0 commit comments

Comments
 (0)