locale.format_string takes strings and numbers, too. (#2922)

Fixes #2879
This commit is contained in:
Utkarsh Gupta
2019-04-14 16:30:07 +00:00
committed by Jelle Zijlstra
parent d9c5422ebf
commit cf88c79a93

View File

@@ -95,10 +95,10 @@ def strxfrm(string: _str) -> _str: ...
def format(format: _str, val: Union[float, Decimal], grouping: bool = ...,
monetary: bool = ...) -> _str: ...
if sys.version_info >= (3, 7):
def format_string(format: _str, val: Sequence[Any],
def format_string(format: _str, val: Any,
grouping: bool = ..., monetary: bool = ...) -> _str: ...
else:
def format_string(format: _str, val: Sequence[Any],
def format_string(format: _str, val: Any,
grouping: bool = ...) -> _str: ...
def currency(val: Union[int, float, Decimal], symbol: bool = ..., grouping: bool = ...,
international: bool = ...) -> _str: ...