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

This commit is contained in:
sinancepel authored and Jelle Zijlstra committed 2019-10-04 19:16:32 -07:00
1 parent 83589844c9
commit cd418e9546
2 files changed
+4

No files matched your search

+2
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]: ...