builtins.pyi: Return complex from __(r)pow__() (#2662)

Closes #1406
This commit is contained in:
Utkarsh Gupta
2018-12-03 18:51:27 +05:30
committed by Sebastian Rittau
parent 7b76fb9b20
commit bee236fb5d

View File

@@ -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: ...