mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-08 13:05:14 +08:00
Remove Python 3.7 branches (#11238)
This commit is contained in:
1 parent
4e62577002
commit
23604858a6
122 files changed
+1952
-3800
No files matched your search
+9
-21
@@ -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