mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Stdlib: correct many parameter names (#9815)
This commit is contained in:
@@ -103,14 +103,25 @@ class Fraction(Rational):
|
||||
def __rmod__(b, a: int | Fraction) -> Fraction: ...
|
||||
@overload
|
||||
def __rmod__(b, a: float) -> float: ...
|
||||
@overload
|
||||
def __divmod__(a, b: int | Fraction) -> tuple[int, Fraction]: ...
|
||||
@overload
|
||||
def __divmod__(a, b: float) -> tuple[float, Fraction]: ...
|
||||
@overload
|
||||
def __rdivmod__(b, a: int | Fraction) -> tuple[int, Fraction]: ...
|
||||
@overload
|
||||
def __rdivmod__(b, a: float) -> tuple[float, Fraction]: ...
|
||||
if sys.version_info >= (3, 8):
|
||||
@overload
|
||||
def __divmod__(a, b: int | Fraction) -> tuple[int, Fraction]: ...
|
||||
@overload
|
||||
def __divmod__(a, b: float) -> tuple[float, Fraction]: ...
|
||||
@overload
|
||||
def __rdivmod__(a, b: int | Fraction) -> tuple[int, Fraction]: ...
|
||||
@overload
|
||||
def __rdivmod__(a, b: float) -> tuple[float, Fraction]: ...
|
||||
else:
|
||||
@overload
|
||||
def __divmod__(self, other: int | Fraction) -> tuple[int, Fraction]: ...
|
||||
@overload
|
||||
def __divmod__(self, other: float) -> tuple[float, Fraction]: ...
|
||||
@overload
|
||||
def __rdivmod__(self, other: int | Fraction) -> tuple[int, Fraction]: ...
|
||||
@overload
|
||||
def __rdivmod__(self, other: float) -> tuple[float, Fraction]: ...
|
||||
|
||||
@overload
|
||||
def __pow__(a, b: int) -> Fraction: ...
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user