Skip to content

Commit

Permalink
Add float.__ceil__ and __floor__ (python#4274)
Browse files Browse the repository at this point in the history
Closes: python#3195
  • Loading branch information
srittau authored Jun 27, 2020
1 parent d4a2cf3 commit 564a822
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stdlib/2/__builtin__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,9 @@ class float:
def __rpow__(self, x: float, mod: None = ...) -> float: ...
def __getnewargs__(self) -> Tuple[float]: ...
def __trunc__(self) -> int: ...
if sys.version_info >= (3, 9):
def __ceil__(self) -> int: ...
def __floor__(self) -> int: ...
if sys.version_info >= (3,):
@overload
def __round__(self, ndigits: None = ...) -> int: ...
Expand Down
3 changes: 3 additions & 0 deletions stdlib/2and3/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,9 @@ class float:
def __rpow__(self, x: float, mod: None = ...) -> float: ...
def __getnewargs__(self) -> Tuple[float]: ...
def __trunc__(self) -> int: ...
if sys.version_info >= (3, 9):
def __ceil__(self) -> int: ...
def __floor__(self) -> int: ...
if sys.version_info >= (3,):
@overload
def __round__(self, ndigits: None = ...) -> int: ...
Expand Down

0 comments on commit 564a822

Please sign in to comment.