mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Remove Python 3.7 branches (#11238)
This commit is contained in:
@@ -30,8 +30,7 @@ class Fraction(Rational):
|
||||
@classmethod
|
||||
def from_decimal(cls, dec: Decimal) -> Self: ...
|
||||
def limit_denominator(self, max_denominator: int = 1000000) -> Fraction: ...
|
||||
if sys.version_info >= (3, 8):
|
||||
def as_integer_ratio(self) -> tuple[int, int]: ...
|
||||
def as_integer_ratio(self) -> tuple[int, int]: ...
|
||||
if sys.version_info >= (3, 12):
|
||||
def is_integer(self) -> bool: ...
|
||||
|
||||
@@ -103,25 +102,14 @@ class Fraction(Rational):
|
||||
def __rmod__(b, a: int | Fraction) -> Fraction: ...
|
||||
@overload
|
||||
def __rmod__(b, a: float) -> float: ...
|
||||
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 __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]: ...
|
||||
@overload
|
||||
def __pow__(a, b: int) -> Fraction: ...
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user