Fix missing argument types in py3 stdlib (#995)

Still missing a few in _subprocess (a Windows-only private module) and decimal
(I gave up).
This commit is contained in:
Jelle Zijlstra
2017-03-14 11:43:42 -07:00
committed by Guido van Rossum
parent 01b3915b3f
commit 11350ed8cc
6 changed files with 16 additions and 14 deletions

View File

@@ -30,11 +30,11 @@ class Fraction(Rational):
*,
_normalize: bool = True) -> None: ...
@overload
def __init__(self, value: float, *, _normalize=True) -> None: ...
def __init__(self, value: float, *, _normalize: bool = True) -> None: ...
@overload
def __init__(self, value: Decimal, *, _normalize=True) -> None: ...
def __init__(self, value: Decimal, *, _normalize: bool = True) -> None: ...
@overload
def __init__(self, value: str, *, _normalize=True) -> None: ...
def __init__(self, value: str, *, _normalize: bool = True) -> None: ...
@classmethod
def from_float(cls, f: float) -> 'Fraction': ...