Consistently use '= ...' for optional parameters.

This commit is contained in:
Matthias Kramm
2015-11-09 13:55:00 -08:00
parent 375bf063b1
commit 94c9ce8fd0
278 changed files with 2085 additions and 2085 deletions

View File

@@ -25,7 +25,7 @@ ROUND_HALF_UP = ... # type: str
ROUND_UP = ... # type: str
def getcontext() -> Context: ...
def localcontext(ctx: Context = None) -> _ContextManager: ...
def localcontext(ctx: Context = ...) -> _ContextManager: ...
def setcontext(c: Context) -> None: ...
DecimalTuple = NamedTuple('DecimalTuple',
@@ -45,9 +45,9 @@ class Context:
prec = ... # type: int
rounding = ... # type: str
traps = ... # type: Dict[type, bool]
def __init__(self, prec: int = None, rounding: str = None, Emin: int = None, Emax: int = None,
capitals: int = None, clamp: int = None, flags=None, traps=None,
_ignored_flags=None) -> None: ...
def __init__(self, prec: int = ..., rounding: str = ..., Emin: int = ..., Emax: int = ...,
capitals: int = ..., clamp: int = ..., flags=..., traps=...,
_ignored_flags=...) -> None: ...
def Etiny(self): ...
def Etop(self): ...
def abs(self, x: _Decimal) -> Decimal: ...
@@ -126,8 +126,8 @@ class Decimal(SupportsInt, SupportsFloat, SupportsAbs[Decimal], SupportsRound[in
# TODO: SupportsCeil, SupportsFloor, SupportsTrunc?
def __init__(cls, value: Union[_Decimal, float, str,
Tuple[int, Sequence[int], int]] = '',
context: Context = None) -> None: ...
Tuple[int, Sequence[int], int]] = ...,
context: Context = ...) -> None: ...
@property
def imag(self) -> Decimal: ...
@@ -137,57 +137,57 @@ class Decimal(SupportsInt, SupportsFloat, SupportsAbs[Decimal], SupportsRound[in
def adjusted(self) -> int: ...
def as_tuple(self) -> DecimalTuple: ...
def canonical(self) -> Decimal: ...
def compare(self, other: _Decimal, context: Context = None) -> Decimal: ...
def compare_signal(self, other: _Decimal, context: Context = None) -> Decimal: ...
def compare_total(self, other: _Decimal, context: Context = None) -> Decimal: ...
def compare_total_mag(self, other: _Decimal, context: Context = None) -> Decimal: ...
def compare(self, other: _Decimal, context: Context = ...) -> Decimal: ...
def compare_signal(self, other: _Decimal, context: Context = ...) -> Decimal: ...
def compare_total(self, other: _Decimal, context: Context = ...) -> Decimal: ...
def compare_total_mag(self, other: _Decimal, context: Context = ...) -> Decimal: ...
def conjugate(self) -> Decimal: ...
def copy_abs(self) -> Decimal: ...
def copy_negate(self) -> Decimal: ...
def copy_sign(self, other: _Decimal, context: Context = None) -> Decimal: ...
def exp(self, context: Context = None) -> Decimal: ...
def fma(self, other: _Decimal, third: _Decimal, context: Context = None) -> Decimal: ...
def copy_sign(self, other: _Decimal, context: Context = ...) -> Decimal: ...
def exp(self, context: Context = ...) -> Decimal: ...
def fma(self, other: _Decimal, third: _Decimal, context: Context = ...) -> Decimal: ...
@classmethod
def from_float(cls, f: float) -> Decimal: ...
def is_canonical(self) -> bool: ...
def is_finite(self) -> bool: ...
def is_infinite(self) -> bool: ...
def is_nan(self) -> bool: ...
def is_normal(self, context: Context = None) -> bool: ...
def is_normal(self, context: Context = ...) -> bool: ...
def is_qnan(self) -> bool: ...
def is_signed(self) -> bool: ...
def is_snan(self) -> bool: ...
def is_subnormal(self, context: Context = None) -> bool: ...
def is_subnormal(self, context: Context = ...) -> bool: ...
def is_zero(self) -> bool: ...
def ln(self, context: Context = None) -> Decimal: ...
def log10(self, context: Context = None) -> Decimal: ...
def logb(self, context: Context = None) -> Decimal: ...
def logical_and(self, other: _Decimal, context: Context = None) -> Decimal: ...
def logical_invert(self, context: Context = None) -> Decimal: ...
def logical_or(self, other: _Decimal, context: Context = None) -> Decimal: ...
def logical_xor(self, other: _Decimal, context: Context = None) -> Decimal: ...
def max(self, other: _Decimal, context: Context = None) -> Decimal: ...
def max_mag(self, other: _Decimal, context: Context = None) -> Decimal: ...
def min(self, other: _Decimal, context: Context = None) -> Decimal: ...
def min_mag(self, other: _Decimal, context: Context = None) -> Decimal: ...
def next_minus(self, context: Context = None) -> Decimal: ...
def next_plus(self, context: Context = None) -> Decimal: ...
def next_toward(self, other: _Decimal, context: Context = None) -> Decimal: ...
def normalize(self, context: Context = None) -> Decimal: ...
def number_class(self, context: Context = None) -> str: ...
def quantize(self, exp: _Decimal, rounding: str = None,
context: Context = None) -> Decimal: ...
def ln(self, context: Context = ...) -> Decimal: ...
def log10(self, context: Context = ...) -> Decimal: ...
def logb(self, context: Context = ...) -> Decimal: ...
def logical_and(self, other: _Decimal, context: Context = ...) -> Decimal: ...
def logical_invert(self, context: Context = ...) -> Decimal: ...
def logical_or(self, other: _Decimal, context: Context = ...) -> Decimal: ...
def logical_xor(self, other: _Decimal, context: Context = ...) -> Decimal: ...
def max(self, other: _Decimal, context: Context = ...) -> Decimal: ...
def max_mag(self, other: _Decimal, context: Context = ...) -> Decimal: ...
def min(self, other: _Decimal, context: Context = ...) -> Decimal: ...
def min_mag(self, other: _Decimal, context: Context = ...) -> Decimal: ...
def next_minus(self, context: Context = ...) -> Decimal: ...
def next_plus(self, context: Context = ...) -> Decimal: ...
def next_toward(self, other: _Decimal, context: Context = ...) -> Decimal: ...
def normalize(self, context: Context = ...) -> Decimal: ...
def number_class(self, context: Context = ...) -> str: ...
def quantize(self, exp: _Decimal, rounding: str = ...,
context: Context = ...) -> Decimal: ...
def radix(self) -> Decimal: ...
def remainder_near(self, other: _Decimal, context: Context = None) -> Decimal: ...
def rotate(self, other: _Decimal, context: Context = None) -> Decimal: ...
def same_quantum(self, other: _Decimal, context: Context = None) -> bool: ...
def scaleb(self, other: _Decimal, context: Context = None) -> Decimal: ...
def shift(self, other: _Decimal, context: Context = None) -> Decimal: ...
def sqrt(self, context: Context = None) -> Decimal: ...
def to_eng_string(self, context: Context = None) -> str: ...
def to_integral(self, rounding: str = None, context: Context = None) -> Decimal: ...
def to_integral_exact(self, rounding: str = None, context: Context = None) -> Decimal: ...
def to_integral_value(self, rounding: str = None, context: Context = None) -> Decimal: ...
def remainder_near(self, other: _Decimal, context: Context = ...) -> Decimal: ...
def rotate(self, other: _Decimal, context: Context = ...) -> Decimal: ...
def same_quantum(self, other: _Decimal, context: Context = ...) -> bool: ...
def scaleb(self, other: _Decimal, context: Context = ...) -> Decimal: ...
def shift(self, other: _Decimal, context: Context = ...) -> Decimal: ...
def sqrt(self, context: Context = ...) -> Decimal: ...
def to_eng_string(self, context: Context = ...) -> str: ...
def to_integral(self, rounding: str = ..., context: Context = ...) -> Decimal: ...
def to_integral_exact(self, rounding: str = ..., context: Context = ...) -> Decimal: ...
def to_integral_value(self, rounding: str = ..., context: Context = ...) -> Decimal: ...
def __abs__(self) -> Decimal: ...
def __add__(self, other: _Decimal) -> Decimal: ...
def __bool__(self) -> bool: ...
@@ -200,7 +200,7 @@ class Decimal(SupportsInt, SupportsFloat, SupportsAbs[Decimal], SupportsRound[in
def __float__(self) -> float: ...
def __floor__(self) -> int: ...
def __floordiv__(self, other: _Decimal) -> Decimal: ...
def __format__(self, specifier, context=None, _localeconv=None) -> str: ...
def __format__(self, specifier, context=..., _localeconv=...) -> str: ...
def __ge__(self, other: _Decimal) -> bool: ...
def __gt__(self, other: _Decimal) -> bool: ...
def __hash__(self) -> int: ...
@@ -219,7 +219,7 @@ class Decimal(SupportsInt, SupportsFloat, SupportsAbs[Decimal], SupportsRound[in
def __rfloordiv__(self, other: int) -> Decimal: ...
def __rmod__(self, other: int) -> Decimal: ...
def __rmul__(self, other: int) -> Decimal: ...
def __round__(self, n=None) -> int: ...
def __round__(self, n=...) -> int: ...
def __rpow__(self, other: int) -> Decimal: ...
def __rsub__(self, other: int) -> Decimal: ...
def __rtruediv__(self, other: int) -> Decimal: ...