Skip to content

Commit 3049999

Browse files
authored
Add complex number support to positive (#447)
1 parent ac7ce5d commit 3049999

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
@@ -792,7 +792,7 @@ def __pos__(self: array, /) -> array:
792792
Parameters
793793
----------
794794
self: array
795-
array instance. Should have a real-valued data type.
795+
array instance. Should have a numeric data type.
796796
797797
Returns
798798
-------

spec/API_specification/array_api/elementwise_functions.py

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

0 commit comments

Comments
 (0)