locale: broaden type of val argument to format (#1453)

Fixes #1350
This commit is contained in:
Jelle Zijlstra
2017-07-04 19:21:12 -07:00
committed by Matthias Kramm
parent f264eda4ed
commit 7ecc979211

View File

@@ -1,5 +1,6 @@
# Stubs for locale
from decimal import Decimal
from typing import Any, Iterable, List, Mapping, Optional, Sequence, Tuple, Union
import sys
@@ -91,7 +92,7 @@ def normalize(localename: _str) -> _str: ...
def resetlocale(category: int = ...) -> None: ...
def strcoll(string1: _str, string2: _str) -> int: ...
def strxfrm(string: _str) -> _str: ...
def format(format: _str, val: int, grouping: bool = ...,
def format(format: _str, val: Union[float, Decimal], grouping: bool = ...,
monetary: bool = ...) -> _str: ...
def format_string(format: _str, val: Sequence[Any],
grouping: bool = ...) -> _str: ...