mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
locale.format_string takes strings and numbers, too. (#2922)
Fixes #2879
This commit is contained in:
committed by
Jelle Zijlstra
parent
d9c5422ebf
commit
cf88c79a93
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user