massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / babel / babel / numbers.pyi
1 from typing import Any
2
3 long = int
4 LC_NUMERIC: Any
5
6 class UnknownCurrencyError(Exception):
7     identifier: Any
8     def __init__(self, identifier) -> None: ...
9
10 def list_currencies(locale: Any | None = ...): ...
11 def validate_currency(currency, locale: Any | None = ...) -> None: ...
12 def is_currency(currency, locale: Any | None = ...): ...
13 def normalize_currency(currency, locale: Any | None = ...): ...
14 def get_currency_name(currency, count: Any | None = ..., locale=...): ...
15 def get_currency_symbol(currency, locale=...): ...
16 def get_currency_precision(currency): ...
17 def get_currency_unit_pattern(currency, count: Any | None = ..., locale=...): ...
18 def get_territory_currencies(
19     territory,
20     start_date: Any | None = ...,
21     end_date: Any | None = ...,
22     tender: bool = ...,
23     non_tender: bool = ...,
24     include_details: bool = ...,
25 ): ...
26 def get_decimal_symbol(locale=...): ...
27 def get_plus_sign_symbol(locale=...): ...
28 def get_minus_sign_symbol(locale=...): ...
29 def get_exponential_symbol(locale=...): ...
30 def get_group_symbol(locale=...): ...
31 def format_number(number, locale=...): ...
32 def get_decimal_precision(number): ...
33 def get_decimal_quantum(precision): ...
34 def format_decimal(
35     number, format: Any | None = ..., locale=..., decimal_quantization: bool = ..., group_separator: bool = ...
36 ): ...
37
38 class UnknownCurrencyFormatError(KeyError): ...
39
40 def format_currency(
41     number,
42     currency,
43     format: Any | None = ...,
44     locale=...,
45     currency_digits: bool = ...,
46     format_type: str = ...,
47     decimal_quantization: bool = ...,
48     group_separator: bool = ...,
49 ): ...
50 def format_percent(
51     number, format: Any | None = ..., locale=..., decimal_quantization: bool = ..., group_separator: bool = ...
52 ): ...
53 def format_scientific(number, format: Any | None = ..., locale=..., decimal_quantization: bool = ...): ...
54
55 class NumberFormatError(ValueError):
56     suggestions: Any
57     def __init__(self, message, suggestions: Any | None = ...) -> None: ...
58
59 def parse_number(string, locale=...): ...
60 def parse_decimal(string, locale=..., strict: bool = ...): ...
61
62 PREFIX_END: str
63 NUMBER_TOKEN: str
64 PREFIX_PATTERN: Any
65 NUMBER_PATTERN: Any
66 SUFFIX_PATTERN: str
67 number_re: Any
68
69 def parse_grouping(p): ...
70 def parse_pattern(pattern): ...
71
72 class NumberPattern:
73     pattern: Any
74     prefix: Any
75     suffix: Any
76     grouping: Any
77     int_prec: Any
78     frac_prec: Any
79     exp_prec: Any
80     exp_plus: Any
81     scale: Any
82     def __init__(self, pattern, prefix, suffix, grouping, int_prec, frac_prec, exp_prec, exp_plus) -> None: ...
83     def compute_scale(self): ...
84     def scientific_notation_elements(self, value, locale): ...
85     def apply(
86         self,
87         value,
88         locale,
89         currency: Any | None = ...,
90         currency_digits: bool = ...,
91         decimal_quantization: bool = ...,
92         force_frac: Any | None = ...,
93         group_separator: bool = ...,
94     ): ...