From bee236fb5d199a98ef7ab684c39763a37b0e7146 Mon Sep 17 00:00:00 2001 From: Utkarsh Gupta Date: Mon, 3 Dec 2018 18:51:27 +0530 Subject: [PATCH] builtins.pyi: Return complex from __(r)pow__() (#2662) Closes #1406 --- stdlib/3/builtins.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/3/builtins.pyi b/stdlib/3/builtins.pyi index 6d6483904..709bd5f70 100644 --- a/stdlib/3/builtins.pyi +++ b/stdlib/3/builtins.pyi @@ -196,7 +196,7 @@ class float: def __truediv__(self, x: float) -> float: ... def __mod__(self, x: float) -> float: ... def __divmod__(self, x: float) -> Tuple[float, float]: ... - def __pow__(self, x: float) -> float: ... + def __pow__(self, x: float) -> float: ... # Returns complex if self is negative and x is not whole def __radd__(self, x: float) -> float: ... def __rsub__(self, x: float) -> float: ... def __rmul__(self, x: float) -> float: ...