Skip to content

Commit d5101dc

Browse files
Fix float.__rpow__ (#7047)
Fixes #7046.
1 parent 98afaa4 commit d5101dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/builtins.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@ class float:
296296
def __rtruediv__(self, __x: float) -> float: ...
297297
def __rmod__(self, __x: float) -> float: ...
298298
def __rdivmod__(self, __x: float) -> tuple[float, float]: ...
299-
def __rpow__(self, __x: float, __mod: None = ...) -> float: ...
299+
# Returns complex if the argument is negative.
300+
def __rpow__(self, __x: float, __mod: None = ...) -> Any: ...
300301
def __getnewargs__(self) -> tuple[float]: ...
301302
def __trunc__(self) -> int: ...
302303
if sys.version_info >= (3, 9):

0 commit comments

Comments
 (0)