mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Expand several stdlib methods to accept unicode or str. (#869)
Expand several stdlib methods to accept unicode or str.
This commit is contained in:
committed by
Jukka Lehtosalo
parent
c8435f4315
commit
6d1edb285d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user