Use lowercase tuple where possible (#6170)

This commit is contained in:
Akuli
2021-10-15 00:18:19 +00:00
committed by GitHub
parent 5f386b0575
commit 994b69ef8f
242 changed files with 1212 additions and 1224 deletions

View File

@@ -1,7 +1,7 @@
import sys
from decimal import Decimal
from numbers import Integral, Rational, Real
from typing import Tuple, Type, TypeVar, Union, overload
from typing import Type, TypeVar, Union, overload
from typing_extensions import Literal
_ComparableNum = Union[int, float, Decimal, Real]
@@ -30,7 +30,7 @@ class Fraction(Rational):
def from_decimal(cls, dec: Decimal) -> Fraction: ...
def limit_denominator(self, max_denominator: int = ...) -> Fraction: ...
if sys.version_info >= (3, 8):
def as_integer_ratio(self) -> Tuple[int, int]: ...
def as_integer_ratio(self) -> tuple[int, int]: ...
@property
def numerator(self) -> int: ...
@property
@@ -100,13 +100,13 @@ class Fraction(Rational):
@overload
def __rmod__(self, other: float) -> float: ...
@overload
def __divmod__(self, other: int | Fraction) -> Tuple[int, Fraction]: ...
def __divmod__(self, other: int | Fraction) -> tuple[int, Fraction]: ...
@overload
def __divmod__(self, other: float) -> Tuple[float, Fraction]: ...
def __divmod__(self, other: float) -> tuple[float, Fraction]: ...
@overload
def __rdivmod__(self, other: int | Fraction) -> Tuple[int, Fraction]: ...
def __rdivmod__(self, other: int | Fraction) -> tuple[int, Fraction]: ...
@overload
def __rdivmod__(self, other: float) -> Tuple[float, Fraction]: ...
def __rdivmod__(self, other: float) -> tuple[float, Fraction]: ...
@overload
def __pow__(self, other: int) -> Fraction: ...
@overload