With current master of mypy and typeshed: ``` % mypy --custom-typeshed-dir . -c 'reveal_type((-2) ** 0.5)' <string>:1: note: Revealed type is "builtins.float" ``` It's actually a complex. This was brought up in https://github.com/python/mypy/issues/12073#issuecomment-1022777785 by @isaacto. cc @AlexWaygood who helped create our current stack of `int.__pow__` overloads.
Activity
Fix `float.__rpow__`
Fix `float.__rpow__` (#7047)