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:
Jelle Zijlstra
2017-11-09 06:28:41 -08:00
committed by Matthias Kramm
parent 66821993f6
commit 54dd6ba27c
53 changed files with 521 additions and 521 deletions

View File

@@ -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: ...