Skip to content

Commit

Permalink
builtins.pyi: Return complex from __(r)pow__() (python#2662)
Browse files Browse the repository at this point in the history
  • Loading branch information
utkarsh2102 authored and Jiri Suchan committed Jan 23, 2019
1 parent 6374783 commit b4b0e4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/3/builtins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ class float:
def __truediv__(self, x: float) -> float: ...
def __mod__(self, x: float) -> float: ...
def __divmod__(self, x: float) -> Tuple[float, float]: ...
def __pow__(self, x: float) -> float: ...
def __pow__(self, x: float) -> float: ... # Returns complex if self is negative and x is not whole
def __radd__(self, x: float) -> float: ...
def __rsub__(self, x: float) -> float: ...
def __rmul__(self, x: float) -> float: ...
Expand Down

0 comments on commit b4b0e4a

Please sign in to comment.