Skip to content

Commit

Permalink
builtins.pyi: Return complex from __(r)pow__()
Browse files Browse the repository at this point in the history
  • Loading branch information
utkarsh2102 committed Dec 1, 2018
1 parent 7ac2fec commit a862513
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stdlib/3/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ class float:
def __truediv__(self, x: float) -> float: ...
def __mod__(self, x: float) -> float: ...
def __divmod__(self, x: float) -> Tuple[float, float]: ...
@overload
def __pow__(self, x: int) -> float: ...
@overload
def __pow__(self, x: float) -> complex: ...
def __radd__(self, x: float) -> float: ...
def __rsub__(self, x: float) -> float: ...
Expand Down

0 comments on commit a862513

Please sign in to comment.