From 8ac7f68a86423977c37a217b6182e4be0c4b0bb7 Mon Sep 17 00:00:00 2001 From: Semyon Proshev Date: Tue, 27 Mar 2018 18:09:18 +0300 Subject: [PATCH] Update return type for `math.ceil` in Python 2 (#1989) --- stdlib/2and3/math.pyi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stdlib/2and3/math.pyi b/stdlib/2and3/math.pyi index 95f4115b2..a4fc306f7 100644 --- a/stdlib/2and3/math.pyi +++ b/stdlib/2and3/math.pyi @@ -20,7 +20,10 @@ def asinh(x: float) -> float: ... def atan(x: float) -> float: ... def atan2(y: float, x: float) -> float: ... def atanh(x: float) -> float: ... -def ceil(x: float) -> int: ... +if sys.version_info >= (3,): + def ceil(x: float) -> int: ... +else: + def ceil(x: float) -> float: ... def copysign(x: float, y: float) -> float: ... def cos(x: float) -> float: ... def cosh(x: float) -> float: ...