From 610545af718711c48e837664abfc1a41bc700487 Mon Sep 17 00:00:00 2001 From: Athan Reines Date: Mon, 30 May 2022 02:46:22 -0700 Subject: [PATCH] Add complex number support to `positive` --- spec/API_specification/array_api/array_object.py | 2 +- spec/API_specification/array_api/elementwise_functions.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/API_specification/array_api/array_object.py b/spec/API_specification/array_api/array_object.py index a8f00bfda..a889aca3d 100644 --- a/spec/API_specification/array_api/array_object.py +++ b/spec/API_specification/array_api/array_object.py @@ -789,7 +789,7 @@ def __pos__(self: array, /) -> array: Parameters ---------- self: array - array instance. Should have a real-valued data type. + array instance. Should have a numeric data type. Returns ------- diff --git a/spec/API_specification/array_api/elementwise_functions.py b/spec/API_specification/array_api/elementwise_functions.py index f72af2089..289b68a5c 100644 --- a/spec/API_specification/array_api/elementwise_functions.py +++ b/spec/API_specification/array_api/elementwise_functions.py @@ -1049,7 +1049,7 @@ def positive(x: array, /) -> array: Parameters ---------- x: array - input array. Should have a real-valued data type. + input array. Should have a numeric data type. Returns -------