From 75005741e6974a4543f5ea7ffdd0c44096e856b9 Mon Sep 17 00:00:00 2001 From: Takumi Kato Date: Tue, 23 Mar 2021 19:44:11 +0900 Subject: [PATCH] Accept complex arguments to cmath functions (#5131) --- stdlib/cmath.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/cmath.pyi b/stdlib/cmath.pyi index bb9e302ed..eaa62eafc 100644 --- a/stdlib/cmath.pyi +++ b/stdlib/cmath.pyi @@ -10,7 +10,7 @@ if sys.version_info >= (3, 6): nanj: complex tau: float -_C = Union[SupportsFloat, SupportsComplex] +_C = Union[SupportsFloat, SupportsComplex, complex] def acos(__z: _C) -> complex: ... def acosh(__z: _C) -> complex: ...