massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / babel / babel / messages / catalog.pyi
1 from typing import Any
2
3 class Message:
4     id: Any
5     string: Any
6     locations: Any
7     flags: Any
8     auto_comments: Any
9     user_comments: Any
10     previous_id: Any
11     lineno: Any
12     context: Any
13     def __init__(
14         self,
15         id,
16         string: str = ...,
17         locations=...,
18         flags=...,
19         auto_comments=...,
20         user_comments=...,
21         previous_id=...,
22         lineno: Any | None = ...,
23         context: Any | None = ...,
24     ) -> None: ...
25     def __cmp__(self, other): ...
26     def __gt__(self, other): ...
27     def __lt__(self, other): ...
28     def __ge__(self, other): ...
29     def __le__(self, other): ...
30     def __eq__(self, other): ...
31     def __ne__(self, other): ...
32     def clone(self): ...
33     def check(self, catalog: Any | None = ...): ...
34     @property
35     def fuzzy(self): ...
36     @property
37     def pluralizable(self): ...
38     @property
39     def python_format(self): ...
40
41 class TranslationError(Exception): ...
42
43 class Catalog:
44     domain: Any
45     locale: Any
46     project: Any
47     version: Any
48     copyright_holder: Any
49     msgid_bugs_address: Any
50     last_translator: Any
51     language_team: Any
52     charset: Any
53     creation_date: Any
54     revision_date: Any
55     fuzzy: Any
56     obsolete: Any
57     def __init__(
58         self,
59         locale: Any | None = ...,
60         domain: Any | None = ...,
61         header_comment=...,
62         project: Any | None = ...,
63         version: Any | None = ...,
64         copyright_holder: Any | None = ...,
65         msgid_bugs_address: Any | None = ...,
66         creation_date: Any | None = ...,
67         revision_date: Any | None = ...,
68         last_translator: Any | None = ...,
69         language_team: Any | None = ...,
70         charset: Any | None = ...,
71         fuzzy: bool = ...,
72     ) -> None: ...
73     locale_identifier: Any
74     header_comment: Any
75     mime_headers: Any
76     @property
77     def num_plurals(self): ...
78     @property
79     def plural_expr(self): ...
80     @property
81     def plural_forms(self): ...
82     def __contains__(self, id): ...
83     def __len__(self): ...
84     def __iter__(self): ...
85     def __delitem__(self, id) -> None: ...
86     def __getitem__(self, id): ...
87     def __setitem__(self, id, message) -> None: ...
88     def add(
89         self,
90         id,
91         string: Any | None = ...,
92         locations=...,
93         flags=...,
94         auto_comments=...,
95         user_comments=...,
96         previous_id=...,
97         lineno: Any | None = ...,
98         context: Any | None = ...,
99     ): ...
100     def check(self) -> None: ...
101     def get(self, id, context: Any | None = ...): ...
102     def delete(self, id, context: Any | None = ...) -> None: ...
103     def update(
104         self, template, no_fuzzy_matching: bool = ..., update_header_comment: bool = ..., keep_user_comments: bool = ...
105     ) -> None: ...