Skip to content

Commit bee236f

Browse files
utkarsh2102srittau
authored andcommitted
builtins.pyi: Return complex from __(r)pow__() (#2662)
Closes #1406
1 parent 7b76fb9 commit bee236f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/3/builtins.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class float:
196196
def __truediv__(self, x: float) -> float: ...
197197
def __mod__(self, x: float) -> float: ...
198198
def __divmod__(self, x: float) -> Tuple[float, float]: ...
199-
def __pow__(self, x: float) -> float: ...
199+
def __pow__(self, x: float) -> float: ... # Returns complex if self is negative and x is not whole
200200
def __radd__(self, x: float) -> float: ...
201201
def __rsub__(self, x: float) -> float: ...
202202
def __rmul__(self, x: float) -> float: ...

0 commit comments

Comments
 (0)