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