Expand several stdlib methods to accept unicode or str. (#869)

Expand several stdlib methods to accept unicode or str.
This commit is contained in:
Lucas Wiman
2017-01-27 08:03:25 -08:00
committed by Jukka Lehtosalo
parent c8435f4315
commit 6d1edb285d
3 changed files with 6 additions and 6 deletions

View File

@@ -54,7 +54,7 @@ def getcontext() -> Context: ...
def localcontext(ctx: Optional[Context] = None) -> _ContextManager: ...
class Decimal(SupportsAbs[Decimal], SupportsFloat, SupportsInt):
def __init__(cls, value: Union[_Decimal, float, str,
def __init__(cls, value: Union[_Decimal, float, str, unicode,
Tuple[int, Sequence[int], int]] = ...,
context: Context = ...) -> None: ...
@classmethod