mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-30 06:35:22 +08:00
Use lowercase tuple where possible (#6170)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user