mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
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:
committed by
Guido van Rossum
parent
01b3915b3f
commit
11350ed8cc
@@ -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': ...
|
||||
|
||||
Reference in New Issue
Block a user