mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Simplify and correct many numeric unions (#7906)
Unblocks PyCQA/flake8-pyi#222
This commit is contained in:
@@ -118,7 +118,7 @@ class Fraction(Rational):
|
||||
@overload
|
||||
def __pow__(self, b: complex) -> complex: ...
|
||||
@overload
|
||||
def __rpow__(self, a: int | float | Fraction) -> float: ...
|
||||
def __rpow__(self, a: float | Fraction) -> float: ...
|
||||
@overload
|
||||
def __rpow__(self, a: complex) -> complex: ...
|
||||
def __pos__(self) -> Fraction: ...
|
||||
|
||||
Reference in New Issue
Block a user