Tweak version tests to help pytype parse them (#374)

This commit is contained in:
alvarocaceres
2016-07-19 09:43:35 -05:00
committed by Matthias Kramm
parent ba349199d7
commit ac5916c170
3 changed files with 2 additions and 4 deletions

View File

@@ -40,7 +40,7 @@ def hypot(x: float, y: float) -> float: ...
if sys.version_info >= (3, 5):
def isclose(a: float, b: float, rel_tol: float = ..., abs_tol: float = ...) -> bool: ...
def isinf(x: float) -> bool: ...
if sys.version_info[0] >= 3:
if sys.version_info >= (3,):
def isfinite(x: float) -> bool: ...
def isnan(x: float) -> bool: ...
def ldexp(x: float, i: int) -> float: ...