massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / msilib / __init__.pyi
1 import sys
2 from types import ModuleType
3 from typing import Any, Container, Iterable, Sequence, Tuple, Type
4 from typing_extensions import Literal
5
6 if sys.platform == "win32":
7     from _msi import _Database
8
9     AMD64: bool
10     if sys.version_info < (3, 7):
11         Itanium: bool
12     Win64: bool
13
14     datasizemask: Literal[0x00FF]
15     type_valid: Literal[0x0100]
16     type_localizable: Literal[0x0200]
17     typemask: Literal[0x0C00]
18     type_long: Literal[0x0000]
19     type_short: Literal[0x0400]
20     type_string: Literal[0x0C00]
21     type_binary: Literal[0x0800]
22     type_nullable: Literal[0x1000]
23     type_key: Literal[0x2000]
24     knownbits: Literal[0x3FFF]
25     class Table:
26
27         name: str
28         fields: list[tuple[int, str, int]]
29         def __init__(self, name: str) -> None: ...
30         def add_field(self, index: int, name: str, type: int) -> None: ...
31         def sql(self) -> str: ...
32         def create(self, db: _Database) -> None: ...
33     class _Unspecified: ...
34     def change_sequence(
35         seq: Sequence[tuple[str, str | None, int]],
36         action: str,
37         seqno: int | Type[_Unspecified] = ...,
38         cond: str | Type[_Unspecified] = ...,
39     ) -> None: ...
40     def add_data(db: _Database, table: str, values: Iterable[Tuple[Any, ...]]) -> None: ...
41     def add_stream(db: _Database, name: str, path: str) -> None: ...
42     def init_database(
43         name: str, schema: ModuleType, ProductName: str, ProductCode: str, ProductVersion: str, Manufacturer: str
44     ) -> _Database: ...
45     def add_tables(db: _Database, module: ModuleType) -> None: ...
46     def make_id(str: str) -> str: ...
47     def gen_uuid() -> str: ...
48     class CAB:
49
50         name: str
51         files: list[tuple[str, str]]
52         filenames: set[str]
53         index: int
54         def __init__(self, name: str) -> None: ...
55         def gen_id(self, file: str) -> str: ...
56         def append(self, full: str, file: str, logical: str) -> tuple[int, str]: ...
57         def commit(self, db: _Database) -> None: ...
58     _directories: set[str]
59     class Directory:
60
61         db: _Database
62         cab: CAB
63         basedir: str
64         physical: str
65         logical: str
66         component: str | None
67         short_names: set[str]
68         ids: set[str]
69         keyfiles: dict[str, str]
70         componentflags: int | None
71         absolute: str
72         def __init__(
73             self,
74             db: _Database,
75             cab: CAB,
76             basedir: str,
77             physical: str,
78             _logical: str,
79             default: str,
80             componentflags: int | None = ...,
81         ) -> None: ...
82         def start_component(
83             self,
84             component: str | None = ...,
85             feature: Feature | None = ...,
86             flags: int | None = ...,
87             keyfile: str | None = ...,
88             uuid: str | None = ...,
89         ) -> None: ...
90         def make_short(self, file: str) -> str: ...
91         def add_file(self, file: str, src: str | None = ..., version: str | None = ..., language: str | None = ...) -> str: ...
92         def glob(self, pattern: str, exclude: Container[str] | None = ...) -> list[str]: ...
93         def remove_pyc(self) -> None: ...
94     class Binary:
95
96         name: str
97         def __init__(self, fname: str) -> None: ...
98         def __repr__(self) -> str: ...
99     class Feature:
100
101         id: str
102         def __init__(
103             self,
104             db: _Database,
105             id: str,
106             title: str,
107             desc: str,
108             display: int,
109             level: int = ...,
110             parent: Feature | None = ...,
111             directory: str | None = ...,
112             attributes: int = ...,
113         ) -> None: ...
114         def set_current(self) -> None: ...
115     class Control:
116
117         dlg: Dialog
118         name: str
119         def __init__(self, dlg: Dialog, name: str) -> None: ...
120         def event(self, event: str, argument: str, condition: str = ..., ordering: int | None = ...) -> None: ...
121         def mapping(self, event: str, attribute: str) -> None: ...
122         def condition(self, action: str, condition: str) -> None: ...
123     class RadioButtonGroup(Control):
124
125         property: str
126         index: int
127         def __init__(self, dlg: Dialog, name: str, property: str) -> None: ...
128         def add(self, name: str, x: int, y: int, w: int, h: int, text: str, value: str | None = ...) -> None: ...
129     class Dialog:
130
131         db: _Database
132         name: str
133         x: int
134         y: int
135         w: int
136         h: int
137         def __init__(
138             self,
139             db: _Database,
140             name: str,
141             x: int,
142             y: int,
143             w: int,
144             h: int,
145             attr: int,
146             title: str,
147             first: str,
148             default: str,
149             cancel: str,
150         ) -> None: ...
151         def control(
152             self,
153             name: str,
154             type: str,
155             x: int,
156             y: int,
157             w: int,
158             h: int,
159             attr: int,
160             prop: str | None,
161             text: str | None,
162             next: str | None,
163             help: str | None,
164         ) -> Control: ...
165         def text(self, name: str, x: int, y: int, w: int, h: int, attr: int, text: str | None) -> Control: ...
166         def bitmap(self, name: str, x: int, y: int, w: int, h: int, text: str | None) -> Control: ...
167         def line(self, name: str, x: int, y: int, w: int, h: int) -> Control: ...
168         def pushbutton(
169             self, name: str, x: int, y: int, w: int, h: int, attr: int, text: str | None, next: str | None
170         ) -> Control: ...
171         def radiogroup(
172             self, name: str, x: int, y: int, w: int, h: int, attr: int, prop: str | None, text: str | None, next: str | None
173         ) -> RadioButtonGroup: ...
174         def checkbox(
175             self, name: str, x: int, y: int, w: int, h: int, attr: int, prop: str | None, text: str | None, next: str | None
176         ) -> Control: ...