massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / babel / babel / messages / pofile.pyi
1 from typing import Any
2
3 def unescape(string): ...
4 def denormalize(string): ...
5
6 class PoFileError(Exception):
7     catalog: Any
8     line: Any
9     lineno: Any
10     def __init__(self, message, catalog, line, lineno) -> None: ...
11
12 class _NormalizedString:
13     def __init__(self, *args) -> None: ...
14     def append(self, s) -> None: ...
15     def denormalize(self): ...
16     def __nonzero__(self): ...
17     __bool__: Any
18     def __cmp__(self, other): ...
19     def __gt__(self, other): ...
20     def __lt__(self, other): ...
21     def __ge__(self, other): ...
22     def __le__(self, other): ...
23     def __eq__(self, other): ...
24     def __ne__(self, other): ...
25
26 class PoFileParser:
27     catalog: Any
28     ignore_obsolete: Any
29     counter: int
30     offset: int
31     abort_invalid: Any
32     def __init__(self, catalog, ignore_obsolete: bool = ..., abort_invalid: bool = ...) -> None: ...
33     def parse(self, fileobj) -> None: ...
34
35 def read_po(
36     fileobj,
37     locale: Any | None = ...,
38     domain: Any | None = ...,
39     ignore_obsolete: bool = ...,
40     charset: Any | None = ...,
41     abort_invalid: bool = ...,
42 ): ...
43
44 WORD_SEP: Any
45
46 def escape(string): ...
47 def normalize(string, prefix: str = ..., width: int = ...): ...
48 def write_po(
49     fileobj,
50     catalog,
51     width: int = ...,
52     no_location: bool = ...,
53     omit_header: bool = ...,
54     sort_output: bool = ...,
55     sort_by_file: bool = ...,
56     ignore_obsolete: bool = ...,
57     include_previous: bool = ...,
58     include_lineno: bool = ...,
59 ): ...