1import sys
2
3# This module defines a function "str()", which is why "str" can't be used
4# as a type annotation or type alias.
5from builtins import str as _str
6from decimal import Decimal
7from typing import Any, Callable, Dict, Iterable, List, Mapping, Optional, Sequence, Tuple, Union
8
9CODESET: int
10D_T_FMT: int
11D_FMT: int
12T_FMT: int
13T_FMT_AMPM: int
14
15DAY_1: int
16DAY_2: int
17DAY_3: int
18DAY_4: int
19DAY_5: int
20DAY_6: int
21DAY_7: int
22ABDAY_1: int
23ABDAY_2: int
24ABDAY_3: int
25ABDAY_4: int
26ABDAY_5: int
27ABDAY_6: int
28ABDAY_7: int
29
30MON_1: int
31MON_2: int
32MON_3: int
33MON_4: int
34MON_5: int
35MON_6: int
36MON_7: int
37MON_8: int
38MON_9: int
39MON_10: int
40MON_11: int
41MON_12: int
42ABMON_1: int
43ABMON_2: int
44ABMON_3: int
45ABMON_4: int
46ABMON_5: int
47ABMON_6: int
48ABMON_7: int
49ABMON_8: int
50ABMON_9: int
51ABMON_10: int
52ABMON_11: int
53ABMON_12: int
54
55RADIXCHAR: int
56THOUSEP: int
57YESEXPR: int
58NOEXPR: int
59CRNCYSTR: int
60
61ERA: int
62ERA_D_T_FMT: int
63ERA_D_FMT: int
64ERA_T_FMT: int
65
66ALT_DIGITS: int
67
68LC_CTYPE: int
69LC_COLLATE: int
70LC_TIME: int
71LC_MONETARY: int
72LC_MESSAGES: int
73LC_NUMERIC: int
74LC_ALL: int
75
76CHAR_MAX: int
77
78class Error(Exception): ...
79
80def setlocale(category: int, locale: Union[_str, Iterable[_str], None] = ...) -> _str: ...
81def localeconv() -> Mapping[_str, Union[int, _str, List[int]]]: ...
82def nl_langinfo(__key: int) -> _str: ...
83def getdefaultlocale(envvars: Tuple[_str, ...] = ...) -> Tuple[Optional[_str], Optional[_str]]: ...
84def getlocale(category: int = ...) -> Sequence[_str]: ...
85def getpreferredencoding(do_setlocale: bool = ...) -> _str: ...
86def normalize(localename: _str) -> _str: ...
87def resetlocale(category: int = ...) -> None: ...
88def strcoll(string1: _str, string2: _str) -> int: ...
89def strxfrm(string: _str) -> _str: ...
90def format(percent: _str, value: Union[float, Decimal], grouping: bool = ..., monetary: bool = ..., *additional: Any) -> _str: ...
91
92if sys.version_info >= (3, 7):
93    def format_string(f: _str, val: Any, grouping: bool = ..., monetary: bool = ...) -> _str: ...
94
95else:
96    def format_string(f: _str, val: Any, grouping: bool = ...) -> _str: ...
97
98def currency(val: Union[int, float, Decimal], symbol: bool = ..., grouping: bool = ..., international: bool = ...) -> _str: ...
99def delocalize(string: _str) -> _str: ...
100def atof(string: _str, func: Callable[[_str], float] = ...) -> float: ...
101def atoi(string: _str) -> int: ...
102def str(val: float) -> _str: ...
103
104locale_alias: Dict[_str, _str]  # undocumented
105locale_encoding_alias: Dict[_str, _str]  # undocumented
106windows_locale: Dict[int, _str]  # undocumented
107