mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 04:52:23 +08:00
Change numerous default values to ... (#1722)
This is the convention, and some default values (e.g. strings) apparently break pytype.
This commit is contained in:
committed by
Matthias Kramm
parent
66821993f6
commit
54dd6ba27c
@@ -28,19 +28,19 @@ class Fraction(Rational):
|
||||
numerator: Union[int, Rational] = 0,
|
||||
denominator: Optional[Union[int, Rational]] = 0,
|
||||
*,
|
||||
_normalize: bool = True) -> None: ...
|
||||
_normalize: bool = ...) -> None: ...
|
||||
@overload
|
||||
def __init__(self, value: float, *, _normalize: bool = True) -> None: ...
|
||||
def __init__(self, value: float, *, _normalize: bool = ...) -> None: ...
|
||||
@overload
|
||||
def __init__(self, value: Decimal, *, _normalize: bool = True) -> None: ...
|
||||
def __init__(self, value: Decimal, *, _normalize: bool = ...) -> None: ...
|
||||
@overload
|
||||
def __init__(self, value: str, *, _normalize: bool = True) -> None: ...
|
||||
def __init__(self, value: str, *, _normalize: bool = ...) -> None: ...
|
||||
|
||||
@classmethod
|
||||
def from_float(cls, f: float) -> 'Fraction': ...
|
||||
@classmethod
|
||||
def from_decimal(cls, dec: Decimal) -> 'Fraction': ...
|
||||
def limit_denominator(self, max_denominator: int = 1000000) -> 'Fraction': ...
|
||||
def limit_denominator(self, max_denominator: int = ...) -> 'Fraction': ...
|
||||
|
||||
@property
|
||||
def numerator(self) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user