introduce __floor__ and __ceil__ for int in Python 3 (#3306)

This commit is contained in:
sinancepel
2019-10-04 19:16:32 -07:00
committed by Jelle Zijlstra
parent 83589844c9
commit cd418e9546
2 changed files with 4 additions and 0 deletions

View File

@@ -185,6 +185,8 @@ class int:
def __invert__(self) -> int: ...
def __trunc__(self) -> int: ...
if sys.version_info >= (3,):
def __ceil__(self) -> int: ...
def __floor__(self) -> int: ...
def __round__(self, ndigits: Optional[int] = ...) -> int: ...
def __getnewargs__(self) -> Tuple[int]: ...