From a5a49d9159102c1158edbf5845f9e1a70343dfd1 Mon Sep 17 00:00:00 2001 From: Christopher Schramm Date: Thu, 21 Jun 2018 17:15:57 +0200 Subject: [PATCH] [builtins]: Specify return type of int.__pow__ --- 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 9e1c74f73edc..e3bc5f43bc9a 100644 --- a/stdlib/3/builtins.pyi +++ b/stdlib/3/builtins.pyi @@ -128,7 +128,7 @@ class int: def __rtruediv__(self, x: int) -> float: ... def __rmod__(self, x: int) -> int: ... def __rdivmod__(self, x: int) -> Tuple[int, int]: ... - def __pow__(self, x: int) -> Any: ... # Return type can be int or float, depending on x. + def __pow__(self, x: int) -> Union[int, float]: ... def __rpow__(self, x: int) -> Any: ... def __and__(self, n: int) -> int: ... def __or__(self, n: int) -> int: ...