basedpyright 1.13.2 → 1.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/dist/pyright-langserver.js +1 -1
  2. package/dist/pyright-langserver.js.map +1 -1
  3. package/dist/pyright.js +1 -1
  4. package/dist/pyright.js.map +1 -1
  5. package/dist/typeshed-fallback/commit.txt +1 -1
  6. package/dist/typeshed-fallback/stdlib/VERSIONS +2 -0
  7. package/dist/typeshed-fallback/stdlib/_ast.pyi +42 -279
  8. package/dist/typeshed-fallback/stdlib/_bisect.pyi +221 -221
  9. package/dist/typeshed-fallback/stdlib/_bootlocale.pyi +1 -1
  10. package/dist/typeshed-fallback/stdlib/_collections_abc.pyi +15 -5
  11. package/dist/typeshed-fallback/stdlib/_csv.pyi +213 -213
  12. package/dist/typeshed-fallback/stdlib/_decimal.pyi +0 -18
  13. package/dist/typeshed-fallback/stdlib/_dummy_thread.pyi +33 -33
  14. package/dist/typeshed-fallback/stdlib/_dummy_threading.pyi +180 -164
  15. package/dist/typeshed-fallback/stdlib/_heapq.pyi +67 -67
  16. package/dist/typeshed-fallback/stdlib/_interpqueues.pyi +16 -0
  17. package/dist/typeshed-fallback/stdlib/_interpreters.pyi +50 -0
  18. package/dist/typeshed-fallback/stdlib/_json.pyi +92 -92
  19. package/dist/typeshed-fallback/stdlib/_lsprof.pyi +92 -92
  20. package/dist/typeshed-fallback/stdlib/_msi.pyi +94 -92
  21. package/dist/typeshed-fallback/stdlib/_operator.pyi +0 -24
  22. package/dist/typeshed-fallback/stdlib/_random.pyi +30 -30
  23. package/dist/typeshed-fallback/stdlib/_tkinter.pyi +6 -2
  24. package/dist/typeshed-fallback/stdlib/_weakrefset.pyi +7 -1
  25. package/dist/typeshed-fallback/stdlib/abc.pyi +12 -4
  26. package/dist/typeshed-fallback/stdlib/argparse.pyi +3 -1
  27. package/dist/typeshed-fallback/stdlib/array.pyi +281 -281
  28. package/dist/typeshed-fallback/stdlib/asynchat.pyi +21 -21
  29. package/dist/typeshed-fallback/stdlib/asyncio/events.pyi +35 -4
  30. package/dist/typeshed-fallback/stdlib/asyncio/futures.pyi +107 -15
  31. package/dist/typeshed-fallback/stdlib/asyncio/locks.pyi +9 -3
  32. package/dist/typeshed-fallback/stdlib/asyncio/queues.pyi +10 -2
  33. package/dist/typeshed-fallback/stdlib/asyncio/sslproto.pyi +23 -4
  34. package/dist/typeshed-fallback/stdlib/asyncio/tasks.pyi +107 -12
  35. package/dist/typeshed-fallback/stdlib/asyncio/windows_events.pyi +86 -86
  36. package/dist/typeshed-fallback/stdlib/asyncio/windows_utils.pyi +49 -49
  37. package/dist/typeshed-fallback/stdlib/asyncore.pyi +90 -90
  38. package/dist/typeshed-fallback/stdlib/audioop.pyi +95 -95
  39. package/dist/typeshed-fallback/stdlib/binascii.pyi +123 -123
  40. package/dist/typeshed-fallback/stdlib/binhex.pyi +45 -45
  41. package/dist/typeshed-fallback/stdlib/builtins.pyi +0 -1
  42. package/dist/typeshed-fallback/stdlib/bz2.pyi +59 -6
  43. package/dist/typeshed-fallback/stdlib/cmath.pyi +112 -112
  44. package/dist/typeshed-fallback/stdlib/codecs.pyi +18 -6
  45. package/dist/typeshed-fallback/stdlib/collections/__init__.pyi +200 -56
  46. package/dist/typeshed-fallback/stdlib/concurrent/futures/__init__.pyi +33 -14
  47. package/dist/typeshed-fallback/stdlib/concurrent/futures/_base.pyi +7 -1
  48. package/dist/typeshed-fallback/stdlib/concurrent/futures/thread.pyi +7 -1
  49. package/dist/typeshed-fallback/stdlib/contextvars.pyi +99 -16
  50. package/dist/typeshed-fallback/stdlib/csv.pyi +14 -2
  51. package/dist/typeshed-fallback/stdlib/ctypes/__init__.pyi +7 -1
  52. package/dist/typeshed-fallback/stdlib/ctypes/_endian.pyi +6 -2
  53. package/dist/typeshed-fallback/stdlib/curses/panel.pyi +16 -4
  54. package/dist/typeshed-fallback/stdlib/dataclasses.pyi +7 -1
  55. package/dist/typeshed-fallback/stdlib/datetime.pyi +346 -104
  56. package/dist/typeshed-fallback/stdlib/dbm/gnu.pyi +52 -2
  57. package/dist/typeshed-fallback/stdlib/dbm/ndbm.pyi +26 -2
  58. package/dist/typeshed-fallback/stdlib/difflib.pyi +7 -1
  59. package/dist/typeshed-fallback/stdlib/distutils/__init__.pyi +5 -5
  60. package/dist/typeshed-fallback/stdlib/distutils/archive_util.pyi +35 -35
  61. package/dist/typeshed-fallback/stdlib/distutils/bcppcompiler.pyi +3 -3
  62. package/dist/typeshed-fallback/stdlib/distutils/ccompiler.pyi +173 -173
  63. package/dist/typeshed-fallback/stdlib/distutils/cmd.pyi +99 -99
  64. package/dist/typeshed-fallback/stdlib/distutils/command/bdist.pyi +25 -25
  65. package/dist/typeshed-fallback/stdlib/distutils/command/bdist_dumb.pyi +21 -21
  66. package/dist/typeshed-fallback/stdlib/distutils/command/bdist_msi.pyi +45 -45
  67. package/dist/typeshed-fallback/stdlib/distutils/command/bdist_rpm.pyi +52 -52
  68. package/dist/typeshed-fallback/stdlib/distutils/command/bdist_wininst.pyi +16 -16
  69. package/dist/typeshed-fallback/stdlib/distutils/command/build.pyi +33 -33
  70. package/dist/typeshed-fallback/stdlib/distutils/command/build_clib.pyi +27 -27
  71. package/dist/typeshed-fallback/stdlib/distutils/command/build_ext.pyi +50 -50
  72. package/dist/typeshed-fallback/stdlib/distutils/command/build_py.pyi +44 -44
  73. package/dist/typeshed-fallback/stdlib/distutils/command/build_scripts.pyi +24 -24
  74. package/dist/typeshed-fallback/stdlib/distutils/command/check.pyi +39 -39
  75. package/dist/typeshed-fallback/stdlib/distutils/command/clean.pyi +17 -17
  76. package/dist/typeshed-fallback/stdlib/distutils/command/config.pyi +84 -84
  77. package/dist/typeshed-fallback/stdlib/distutils/command/install.pyi +65 -65
  78. package/dist/typeshed-fallback/stdlib/distutils/command/install_data.pyi +19 -19
  79. package/dist/typeshed-fallback/stdlib/distutils/command/install_egg_info.pyi +18 -18
  80. package/dist/typeshed-fallback/stdlib/distutils/command/install_headers.pyi +16 -16
  81. package/dist/typeshed-fallback/stdlib/distutils/command/install_lib.pyi +25 -25
  82. package/dist/typeshed-fallback/stdlib/distutils/command/install_scripts.pyi +18 -18
  83. package/dist/typeshed-fallback/stdlib/distutils/command/register.pyi +20 -20
  84. package/dist/typeshed-fallback/stdlib/distutils/command/sdist.pyi +44 -44
  85. package/dist/typeshed-fallback/stdlib/distutils/command/upload.pyi +17 -17
  86. package/dist/typeshed-fallback/stdlib/distutils/config.pyi +17 -17
  87. package/dist/typeshed-fallback/stdlib/distutils/core.pyi +57 -57
  88. package/dist/typeshed-fallback/stdlib/distutils/cygwinccompiler.pyi +20 -20
  89. package/dist/typeshed-fallback/stdlib/distutils/debug.pyi +1 -1
  90. package/dist/typeshed-fallback/stdlib/distutils/dep_util.pyi +14 -14
  91. package/dist/typeshed-fallback/stdlib/distutils/dir_util.pyi +23 -23
  92. package/dist/typeshed-fallback/stdlib/distutils/dist.pyi +149 -149
  93. package/dist/typeshed-fallback/stdlib/distutils/errors.pyi +19 -19
  94. package/dist/typeshed-fallback/stdlib/distutils/extension.pyi +36 -36
  95. package/dist/typeshed-fallback/stdlib/distutils/fancy_getopt.pyi +34 -34
  96. package/dist/typeshed-fallback/stdlib/distutils/file_util.pyi +38 -38
  97. package/dist/typeshed-fallback/stdlib/distutils/filelist.pyi +58 -58
  98. package/dist/typeshed-fallback/stdlib/distutils/log.pyi +25 -25
  99. package/dist/typeshed-fallback/stdlib/distutils/msvccompiler.pyi +3 -3
  100. package/dist/typeshed-fallback/stdlib/distutils/spawn.pyi +6 -6
  101. package/dist/typeshed-fallback/stdlib/distutils/sysconfig.pyi +33 -33
  102. package/dist/typeshed-fallback/stdlib/distutils/text_file.pyi +21 -21
  103. package/dist/typeshed-fallback/stdlib/distutils/unixccompiler.pyi +3 -3
  104. package/dist/typeshed-fallback/stdlib/distutils/util.pyi +50 -50
  105. package/dist/typeshed-fallback/stdlib/distutils/version.pyi +38 -36
  106. package/dist/typeshed-fallback/stdlib/dummy_threading.pyi +2 -2
  107. package/dist/typeshed-fallback/stdlib/email/_header_value_parser.pyi +3 -1
  108. package/dist/typeshed-fallback/stdlib/email/charset.pyi +3 -1
  109. package/dist/typeshed-fallback/stdlib/email/header.pyi +3 -1
  110. package/dist/typeshed-fallback/stdlib/email/headerregistry.pyi +6 -1
  111. package/dist/typeshed-fallback/stdlib/enum.pyi +8 -1
  112. package/dist/typeshed-fallback/stdlib/filecmp.pyi +7 -1
  113. package/dist/typeshed-fallback/stdlib/fileinput.pyi +7 -1
  114. package/dist/typeshed-fallback/stdlib/formatter.pyi +88 -88
  115. package/dist/typeshed-fallback/stdlib/fractions.pyi +6 -2
  116. package/dist/typeshed-fallback/stdlib/functools.pyi +65 -13
  117. package/dist/typeshed-fallback/stdlib/graphlib.pyi +7 -1
  118. package/dist/typeshed-fallback/stdlib/gzip.pyi +3 -1
  119. package/dist/typeshed-fallback/stdlib/hashlib.pyi +42 -14
  120. package/dist/typeshed-fallback/stdlib/heapq.pyi +3 -1
  121. package/dist/typeshed-fallback/stdlib/hmac.pyi +30 -2
  122. package/dist/typeshed-fallback/stdlib/http/cookies.pyi +7 -1
  123. package/dist/typeshed-fallback/stdlib/imp.pyi +62 -62
  124. package/dist/typeshed-fallback/stdlib/importlib/abc.pyi +3 -1
  125. package/dist/typeshed-fallback/stdlib/importlib/machinery.pyi +3 -1
  126. package/dist/typeshed-fallback/stdlib/importlib/metadata/__init__.pyi +79 -15
  127. package/dist/typeshed-fallback/stdlib/importlib/metadata/_meta.pyi +3 -1
  128. package/dist/typeshed-fallback/stdlib/importlib/resources/simple.pyi +3 -1
  129. package/dist/typeshed-fallback/stdlib/io.pyi +428 -44
  130. package/dist/typeshed-fallback/stdlib/ipaddress.pyi +153 -28
  131. package/dist/typeshed-fallback/stdlib/itertools.pyi +5 -1
  132. package/dist/typeshed-fallback/stdlib/json/encoder.pyi +14 -2
  133. package/dist/typeshed-fallback/stdlib/keyword.pyi +6 -2
  134. package/dist/typeshed-fallback/stdlib/lib2to3/pytree.pyi +12 -2
  135. package/dist/typeshed-fallback/stdlib/logging/__init__.pyi +17 -3
  136. package/dist/typeshed-fallback/stdlib/lzma.pyi +107 -9
  137. package/dist/typeshed-fallback/stdlib/mailbox.pyi +14 -2
  138. package/dist/typeshed-fallback/stdlib/math.pyi +424 -424
  139. package/dist/typeshed-fallback/stdlib/mmap.pyi +160 -160
  140. package/dist/typeshed-fallback/stdlib/msilib/__init__.pyi +177 -177
  141. package/dist/typeshed-fallback/stdlib/msilib/schema.pyi +94 -94
  142. package/dist/typeshed-fallback/stdlib/msilib/sequence.pyi +13 -13
  143. package/dist/typeshed-fallback/stdlib/msilib/text.pyi +7 -7
  144. package/dist/typeshed-fallback/stdlib/multiprocessing/connection.pyi +9 -3
  145. package/dist/typeshed-fallback/stdlib/multiprocessing/context.pyi +12 -2
  146. package/dist/typeshed-fallback/stdlib/multiprocessing/dummy/__init__.pyi +3 -1
  147. package/dist/typeshed-fallback/stdlib/multiprocessing/managers.pyi +10 -2
  148. package/dist/typeshed-fallback/stdlib/multiprocessing/pool.pyi +7 -1
  149. package/dist/typeshed-fallback/stdlib/multiprocessing/popen_spawn_win32.pyi +30 -30
  150. package/dist/typeshed-fallback/stdlib/multiprocessing/process.pyi +15 -4
  151. package/dist/typeshed-fallback/stdlib/multiprocessing/queues.pyi +14 -2
  152. package/dist/typeshed-fallback/stdlib/multiprocessing/shared_memory.pyi +19 -5
  153. package/dist/typeshed-fallback/stdlib/nis.pyi +31 -4
  154. package/dist/typeshed-fallback/stdlib/numbers.pyi +26 -6
  155. package/dist/typeshed-fallback/stdlib/opcode.pyi +3 -1
  156. package/dist/typeshed-fallback/stdlib/optparse.pyi +3 -1
  157. package/dist/typeshed-fallback/stdlib/os/__init__.pyi +1447 -217
  158. package/dist/typeshed-fallback/stdlib/pathlib.pyi +42 -11
  159. package/dist/typeshed-fallback/stdlib/pickle.pyi +200 -12
  160. package/dist/typeshed-fallback/stdlib/posixpath.pyi +6 -2
  161. package/dist/typeshed-fallback/stdlib/pyexpat/errors.pyi +2 -0
  162. package/dist/typeshed-fallback/stdlib/pyexpat/model.pyi +2 -0
  163. package/dist/typeshed-fallback/stdlib/queue.pyi +57 -9
  164. package/dist/typeshed-fallback/stdlib/re.pyi +219 -57
  165. package/dist/typeshed-fallback/stdlib/sched.pyi +8 -1
  166. package/dist/typeshed-fallback/stdlib/signal.pyi +95 -19
  167. package/dist/typeshed-fallback/stdlib/smtpd.pyi +91 -91
  168. package/dist/typeshed-fallback/stdlib/socket.pyi +12 -2
  169. package/dist/typeshed-fallback/stdlib/sqlite3/dbapi2.pyi +417 -83
  170. package/dist/typeshed-fallback/stdlib/ssl.pyi +133 -22
  171. package/dist/typeshed-fallback/stdlib/statistics.pyi +20 -5
  172. package/dist/typeshed-fallback/stdlib/struct.pyi +114 -13
  173. package/dist/typeshed-fallback/stdlib/subprocess.pyi +14 -2
  174. package/dist/typeshed-fallback/stdlib/symbol.pyi +93 -93
  175. package/dist/typeshed-fallback/stdlib/symtable.pyi +30 -1
  176. package/dist/typeshed-fallback/stdlib/sys/__init__.pyi +7 -3
  177. package/dist/typeshed-fallback/stdlib/tarfile.pyi +6 -2
  178. package/dist/typeshed-fallback/stdlib/tempfile.pyi +17 -3
  179. package/dist/typeshed-fallback/stdlib/threading.pyi +68 -7
  180. package/dist/typeshed-fallback/stdlib/tkinter/__init__.pyi +3 -1
  181. package/dist/typeshed-fallback/stdlib/turtle.pyi +11 -3
  182. package/dist/typeshed-fallback/stdlib/types.pyi +306 -79
  183. package/dist/typeshed-fallback/stdlib/typing.pyi +310 -31
  184. package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +42 -11
  185. package/dist/typeshed-fallback/stdlib/unittest/__init__.pyi +6 -1
  186. package/dist/typeshed-fallback/stdlib/unittest/case.pyi +7 -1
  187. package/dist/typeshed-fallback/stdlib/unittest/mock.pyi +3 -1
  188. package/dist/typeshed-fallback/stdlib/urllib/parse.pyi +51 -3
  189. package/dist/typeshed-fallback/stdlib/weakref.pyi +6 -2
  190. package/dist/typeshed-fallback/stdlib/winsound.pyi +44 -28
  191. package/dist/typeshed-fallback/stdlib/xml/dom/minicompat.pyi +6 -2
  192. package/dist/typeshed-fallback/stdlib/xml/dom/minidom.pyi +33 -11
  193. package/dist/typeshed-fallback/stdlib/xml/etree/ElementTree.pyi +30 -10
  194. package/dist/typeshed-fallback/stdlib/xml/parsers/expat/errors.pyi +2 -0
  195. package/dist/typeshed-fallback/stdlib/xml/parsers/expat/model.pyi +2 -0
  196. package/dist/typeshed-fallback/stdlib/xxlimited.pyi +19 -4
  197. package/dist/typeshed-fallback/stdlib/zipimport.pyi +31 -0
  198. package/dist/typeshed-fallback/stdlib/zlib.pyi +157 -157
  199. package/dist/typeshed-fallback/stdlib/zoneinfo/__init__.pyi +18 -6
  200. package/dist/typeshed-fallback/stubs/assertpy/assertpy/extracting.pyi +2 -2
  201. package/dist/typeshed-fallback/stubs/docker/docker/_types.pyi +18 -1
  202. package/dist/typeshed-fallback/stubs/docker/docker/api/container.pyi +5 -19
  203. package/dist/typeshed-fallback/stubs/docker/docker/api/daemon.pyi +2 -1
  204. package/dist/typeshed-fallback/stubs/docker/docker/models/containers.pyi +268 -6
  205. package/dist/typeshed-fallback/stubs/docker/docker/types/containers.pyi +3 -7
  206. package/dist/typeshed-fallback/stubs/docker/docker/types/daemon.pyi +10 -4
  207. package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/states.pyi +47 -0
  208. package/dist/typeshed-fallback/stubs/gdb/gdb/__init__.pyi +1 -1
  209. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/generic.pyi +1 -1
  210. package/dist/typeshed-fallback/stubs/openpyxl/METADATA.toml +1 -1
  211. package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/packaging/extended.pyi +0 -2
  212. package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/styles/named_styles.pyi +2 -1
  213. package/dist/typeshed-fallback/stubs/pygit2/METADATA.toml +1 -1
  214. package/dist/typeshed-fallback/stubs/pytest-lazy-fixture/pytest_lazyfixture.pyi +2 -2
  215. package/dist/typeshed-fallback/stubs/python-crontab/METADATA.toml +1 -1
  216. package/dist/typeshed-fallback/stubs/reportlab/METADATA.toml +1 -1
  217. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/rl_safe_eval.pyi +23 -11
  218. package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfbase/pdfdoc.pyi +6 -0
  219. package/dist/typeshed-fallback/stubs/setuptools/METADATA.toml +1 -1
  220. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/archive_util.pyi +8 -8
  221. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/ccompiler.pyi +11 -17
  222. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/cmd.pyi +11 -11
  223. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/build_py.pyi +1 -2
  224. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/filelist.pyi +4 -12
  225. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/sysconfig.pyi +2 -4
  226. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/util.pyi +5 -8
  227. package/dist/typeshed-fallback/stubs/str2bool/METADATA.toml +2 -0
  228. package/dist/typeshed-fallback/stubs/str2bool/str2bool/__init__.pyi +7 -0
  229. package/package.json +1 -1
@@ -1,177 +1,177 @@
1
- import sys
2
- from collections.abc import Container, Iterable, Sequence
3
- from types import ModuleType
4
- from typing import Any, Literal
5
-
6
- if sys.platform == "win32":
7
- from _msi import *
8
- from _msi import _Database
9
-
10
- AMD64: bool
11
- Win64: bool
12
-
13
- datasizemask: Literal[0x00FF]
14
- type_valid: Literal[0x0100]
15
- type_localizable: Literal[0x0200]
16
- typemask: Literal[0x0C00]
17
- type_long: Literal[0x0000]
18
- type_short: Literal[0x0400]
19
- type_string: Literal[0x0C00]
20
- type_binary: Literal[0x0800]
21
- type_nullable: Literal[0x1000]
22
- type_key: Literal[0x2000]
23
- knownbits: Literal[0x3FFF]
24
-
25
- class Table:
26
- name: str
27
- fields: list[tuple[int, str, int]]
28
- def __init__(self, name: str) -> None: ...
29
- def add_field(self, index: int, name: str, type: int) -> None: ...
30
- def sql(self) -> str: ...
31
- def create(self, db: _Database) -> None: ...
32
-
33
- class _Unspecified: ...
34
-
35
- def change_sequence(
36
- seq: Sequence[tuple[str, str | None, int]],
37
- action: str,
38
- seqno: int | type[_Unspecified] = ...,
39
- cond: str | type[_Unspecified] = ...,
40
- ) -> None: ...
41
- def add_data(db: _Database, table: str, values: Iterable[tuple[Any, ...]]) -> None: ...
42
- def add_stream(db: _Database, name: str, path: str) -> None: ...
43
- def init_database(
44
- name: str, schema: ModuleType, ProductName: str, ProductCode: str, ProductVersion: str, Manufacturer: str
45
- ) -> _Database: ...
46
- def add_tables(db: _Database, module: ModuleType) -> None: ...
47
- def make_id(str: str) -> str: ...
48
- def gen_uuid() -> str: ...
49
-
50
- class CAB:
51
- name: str
52
- files: list[tuple[str, str]]
53
- filenames: set[str]
54
- index: int
55
- def __init__(self, name: str) -> None: ...
56
- def gen_id(self, file: str) -> str: ...
57
- def append(self, full: str, file: str, logical: str) -> tuple[int, str]: ...
58
- def commit(self, db: _Database) -> None: ...
59
-
60
- _directories: set[str]
61
-
62
- class Directory:
63
- db: _Database
64
- cab: CAB
65
- basedir: str
66
- physical: str
67
- logical: str
68
- component: str | None
69
- short_names: set[str]
70
- ids: set[str]
71
- keyfiles: dict[str, str]
72
- componentflags: int | None
73
- absolute: str
74
- def __init__(
75
- self,
76
- db: _Database,
77
- cab: CAB,
78
- basedir: str,
79
- physical: str,
80
- _logical: str,
81
- default: str,
82
- componentflags: int | None = None,
83
- ) -> None: ...
84
- def start_component(
85
- self,
86
- component: str | None = None,
87
- feature: Feature | None = None,
88
- flags: int | None = None,
89
- keyfile: str | None = None,
90
- uuid: str | None = None,
91
- ) -> None: ...
92
- def make_short(self, file: str) -> str: ...
93
- def add_file(self, file: str, src: str | None = None, version: str | None = None, language: str | None = None) -> str: ...
94
- def glob(self, pattern: str, exclude: Container[str] | None = None) -> list[str]: ...
95
- def remove_pyc(self) -> None: ...
96
-
97
- class Binary:
98
- name: str
99
- def __init__(self, fname: str) -> None: ...
100
-
101
- class Feature:
102
- id: str
103
- def __init__(
104
- self,
105
- db: _Database,
106
- id: str,
107
- title: str,
108
- desc: str,
109
- display: int,
110
- level: int = 1,
111
- parent: Feature | None = None,
112
- directory: str | None = None,
113
- attributes: int = 0,
114
- ) -> None: ...
115
- def set_current(self) -> None: ...
116
-
117
- class Control:
118
- dlg: Dialog
119
- name: str
120
- def __init__(self, dlg: Dialog, name: str) -> None: ...
121
- def event(self, event: str, argument: str, condition: str = "1", ordering: int | None = None) -> None: ...
122
- def mapping(self, event: str, attribute: str) -> None: ...
123
- def condition(self, action: str, condition: str) -> None: ...
124
-
125
- class RadioButtonGroup(Control):
126
- property: str
127
- index: int
128
- def __init__(self, dlg: Dialog, name: str, property: str) -> None: ...
129
- def add(self, name: str, x: int, y: int, w: int, h: int, text: str, value: str | None = None) -> None: ...
130
-
131
- class Dialog:
132
- db: _Database
133
- name: str
134
- x: int
135
- y: int
136
- w: int
137
- h: int
138
- def __init__(
139
- self,
140
- db: _Database,
141
- name: str,
142
- x: int,
143
- y: int,
144
- w: int,
145
- h: int,
146
- attr: int,
147
- title: str,
148
- first: str,
149
- default: str,
150
- cancel: str,
151
- ) -> None: ...
152
- def control(
153
- self,
154
- name: str,
155
- type: str,
156
- x: int,
157
- y: int,
158
- w: int,
159
- h: int,
160
- attr: int,
161
- prop: str | None,
162
- text: str | None,
163
- next: str | None,
164
- help: str | None,
165
- ) -> Control: ...
166
- def text(self, name: str, x: int, y: int, w: int, h: int, attr: int, text: str | None) -> Control: ...
167
- def bitmap(self, name: str, x: int, y: int, w: int, h: int, text: str | None) -> Control: ...
168
- def line(self, name: str, x: int, y: int, w: int, h: int) -> Control: ...
169
- def pushbutton(
170
- self, name: str, x: int, y: int, w: int, h: int, attr: int, text: str | None, next: str | None
171
- ) -> Control: ...
172
- def radiogroup(
173
- self, name: str, x: int, y: int, w: int, h: int, attr: int, prop: str | None, text: str | None, next: str | None
174
- ) -> RadioButtonGroup: ...
175
- def checkbox(
176
- self, name: str, x: int, y: int, w: int, h: int, attr: int, prop: str | None, text: str | None, next: str | None
177
- ) -> Control: ...
1
+ import sys
2
+ from collections.abc import Container, Iterable, Sequence
3
+ from types import ModuleType
4
+ from typing import Any, Literal
5
+
6
+ if sys.platform == "win32":
7
+ from _msi import *
8
+ from _msi import _Database
9
+
10
+ AMD64: bool
11
+ Win64: bool
12
+
13
+ datasizemask: Literal[0x00FF]
14
+ type_valid: Literal[0x0100]
15
+ type_localizable: Literal[0x0200]
16
+ typemask: Literal[0x0C00]
17
+ type_long: Literal[0x0000]
18
+ type_short: Literal[0x0400]
19
+ type_string: Literal[0x0C00]
20
+ type_binary: Literal[0x0800]
21
+ type_nullable: Literal[0x1000]
22
+ type_key: Literal[0x2000]
23
+ knownbits: Literal[0x3FFF]
24
+
25
+ class Table:
26
+ name: str
27
+ fields: list[tuple[int, str, int]]
28
+ def __init__(self, name: str) -> None: ...
29
+ def add_field(self, index: int, name: str, type: int) -> None: ...
30
+ def sql(self) -> str: ...
31
+ def create(self, db: _Database) -> None: ...
32
+
33
+ class _Unspecified: ...
34
+
35
+ def change_sequence(
36
+ seq: Sequence[tuple[str, str | None, int]],
37
+ action: str,
38
+ seqno: int | type[_Unspecified] = ...,
39
+ cond: str | type[_Unspecified] = ...,
40
+ ) -> None: ...
41
+ def add_data(db: _Database, table: str, values: Iterable[tuple[Any, ...]]) -> None: ...
42
+ def add_stream(db: _Database, name: str, path: str) -> None: ...
43
+ def init_database(
44
+ name: str, schema: ModuleType, ProductName: str, ProductCode: str, ProductVersion: str, Manufacturer: str
45
+ ) -> _Database: ...
46
+ def add_tables(db: _Database, module: ModuleType) -> None: ...
47
+ def make_id(str: str) -> str: ...
48
+ def gen_uuid() -> str: ...
49
+
50
+ class CAB:
51
+ name: str
52
+ files: list[tuple[str, str]]
53
+ filenames: set[str]
54
+ index: int
55
+ def __init__(self, name: str) -> None: ...
56
+ def gen_id(self, file: str) -> str: ...
57
+ def append(self, full: str, file: str, logical: str) -> tuple[int, str]: ...
58
+ def commit(self, db: _Database) -> None: ...
59
+
60
+ _directories: set[str]
61
+
62
+ class Directory:
63
+ db: _Database
64
+ cab: CAB
65
+ basedir: str
66
+ physical: str
67
+ logical: str
68
+ component: str | None
69
+ short_names: set[str]
70
+ ids: set[str]
71
+ keyfiles: dict[str, str]
72
+ componentflags: int | None
73
+ absolute: str
74
+ def __init__(
75
+ self,
76
+ db: _Database,
77
+ cab: CAB,
78
+ basedir: str,
79
+ physical: str,
80
+ _logical: str,
81
+ default: str,
82
+ componentflags: int | None = None,
83
+ ) -> None: ...
84
+ def start_component(
85
+ self,
86
+ component: str | None = None,
87
+ feature: Feature | None = None,
88
+ flags: int | None = None,
89
+ keyfile: str | None = None,
90
+ uuid: str | None = None,
91
+ ) -> None: ...
92
+ def make_short(self, file: str) -> str: ...
93
+ def add_file(self, file: str, src: str | None = None, version: str | None = None, language: str | None = None) -> str: ...
94
+ def glob(self, pattern: str, exclude: Container[str] | None = None) -> list[str]: ...
95
+ def remove_pyc(self) -> None: ...
96
+
97
+ class Binary:
98
+ name: str
99
+ def __init__(self, fname: str) -> None: ...
100
+
101
+ class Feature:
102
+ id: str
103
+ def __init__(
104
+ self,
105
+ db: _Database,
106
+ id: str,
107
+ title: str,
108
+ desc: str,
109
+ display: int,
110
+ level: int = 1,
111
+ parent: Feature | None = None,
112
+ directory: str | None = None,
113
+ attributes: int = 0,
114
+ ) -> None: ...
115
+ def set_current(self) -> None: ...
116
+
117
+ class Control:
118
+ dlg: Dialog
119
+ name: str
120
+ def __init__(self, dlg: Dialog, name: str) -> None: ...
121
+ def event(self, event: str, argument: str, condition: str = "1", ordering: int | None = None) -> None: ...
122
+ def mapping(self, event: str, attribute: str) -> None: ...
123
+ def condition(self, action: str, condition: str) -> None: ...
124
+
125
+ class RadioButtonGroup(Control):
126
+ property: str
127
+ index: int
128
+ def __init__(self, dlg: Dialog, name: str, property: str) -> None: ...
129
+ def add(self, name: str, x: int, y: int, w: int, h: int, text: str, value: str | None = None) -> None: ...
130
+
131
+ class Dialog:
132
+ db: _Database
133
+ name: str
134
+ x: int
135
+ y: int
136
+ w: int
137
+ h: int
138
+ def __init__(
139
+ self,
140
+ db: _Database,
141
+ name: str,
142
+ x: int,
143
+ y: int,
144
+ w: int,
145
+ h: int,
146
+ attr: int,
147
+ title: str,
148
+ first: str,
149
+ default: str,
150
+ cancel: str,
151
+ ) -> None: ...
152
+ def control(
153
+ self,
154
+ name: str,
155
+ type: str,
156
+ x: int,
157
+ y: int,
158
+ w: int,
159
+ h: int,
160
+ attr: int,
161
+ prop: str | None,
162
+ text: str | None,
163
+ next: str | None,
164
+ help: str | None,
165
+ ) -> Control: ...
166
+ def text(self, name: str, x: int, y: int, w: int, h: int, attr: int, text: str | None) -> Control: ...
167
+ def bitmap(self, name: str, x: int, y: int, w: int, h: int, text: str | None) -> Control: ...
168
+ def line(self, name: str, x: int, y: int, w: int, h: int) -> Control: ...
169
+ def pushbutton(
170
+ self, name: str, x: int, y: int, w: int, h: int, attr: int, text: str | None, next: str | None
171
+ ) -> Control: ...
172
+ def radiogroup(
173
+ self, name: str, x: int, y: int, w: int, h: int, attr: int, prop: str | None, text: str | None, next: str | None
174
+ ) -> RadioButtonGroup: ...
175
+ def checkbox(
176
+ self, name: str, x: int, y: int, w: int, h: int, attr: int, prop: str | None, text: str | None, next: str | None
177
+ ) -> Control: ...
@@ -1,94 +1,94 @@
1
- import sys
2
-
3
- if sys.platform == "win32":
4
- from . import Table
5
-
6
- _Validation: Table
7
- ActionText: Table
8
- AdminExecuteSequence: Table
9
- Condition: Table
10
- AdminUISequence: Table
11
- AdvtExecuteSequence: Table
12
- AdvtUISequence: Table
13
- AppId: Table
14
- AppSearch: Table
15
- Property: Table
16
- BBControl: Table
17
- Billboard: Table
18
- Feature: Table
19
- Binary: Table
20
- BindImage: Table
21
- File: Table
22
- CCPSearch: Table
23
- CheckBox: Table
24
- Class: Table
25
- Component: Table
26
- Icon: Table
27
- ProgId: Table
28
- ComboBox: Table
29
- CompLocator: Table
30
- Complus: Table
31
- Directory: Table
32
- Control: Table
33
- Dialog: Table
34
- ControlCondition: Table
35
- ControlEvent: Table
36
- CreateFolder: Table
37
- CustomAction: Table
38
- DrLocator: Table
39
- DuplicateFile: Table
40
- Environment: Table
41
- Error: Table
42
- EventMapping: Table
43
- Extension: Table
44
- MIME: Table
45
- FeatureComponents: Table
46
- FileSFPCatalog: Table
47
- SFPCatalog: Table
48
- Font: Table
49
- IniFile: Table
50
- IniLocator: Table
51
- InstallExecuteSequence: Table
52
- InstallUISequence: Table
53
- IsolatedComponent: Table
54
- LaunchCondition: Table
55
- ListBox: Table
56
- ListView: Table
57
- LockPermissions: Table
58
- Media: Table
59
- MoveFile: Table
60
- MsiAssembly: Table
61
- MsiAssemblyName: Table
62
- MsiDigitalCertificate: Table
63
- MsiDigitalSignature: Table
64
- MsiFileHash: Table
65
- MsiPatchHeaders: Table
66
- ODBCAttribute: Table
67
- ODBCDriver: Table
68
- ODBCDataSource: Table
69
- ODBCSourceAttribute: Table
70
- ODBCTranslator: Table
71
- Patch: Table
72
- PatchPackage: Table
73
- PublishComponent: Table
74
- RadioButton: Table
75
- Registry: Table
76
- RegLocator: Table
77
- RemoveFile: Table
78
- RemoveIniFile: Table
79
- RemoveRegistry: Table
80
- ReserveCost: Table
81
- SelfReg: Table
82
- ServiceControl: Table
83
- ServiceInstall: Table
84
- Shortcut: Table
85
- Signature: Table
86
- TextStyle: Table
87
- TypeLib: Table
88
- UIText: Table
89
- Upgrade: Table
90
- Verb: Table
91
-
92
- tables: list[Table]
93
-
94
- _Validation_records: list[tuple[str, str, str, int | None, int | None, str | None, int | None, str | None, str | None, str]]
1
+ import sys
2
+
3
+ if sys.platform == "win32":
4
+ from . import Table
5
+
6
+ _Validation: Table
7
+ ActionText: Table
8
+ AdminExecuteSequence: Table
9
+ Condition: Table
10
+ AdminUISequence: Table
11
+ AdvtExecuteSequence: Table
12
+ AdvtUISequence: Table
13
+ AppId: Table
14
+ AppSearch: Table
15
+ Property: Table
16
+ BBControl: Table
17
+ Billboard: Table
18
+ Feature: Table
19
+ Binary: Table
20
+ BindImage: Table
21
+ File: Table
22
+ CCPSearch: Table
23
+ CheckBox: Table
24
+ Class: Table
25
+ Component: Table
26
+ Icon: Table
27
+ ProgId: Table
28
+ ComboBox: Table
29
+ CompLocator: Table
30
+ Complus: Table
31
+ Directory: Table
32
+ Control: Table
33
+ Dialog: Table
34
+ ControlCondition: Table
35
+ ControlEvent: Table
36
+ CreateFolder: Table
37
+ CustomAction: Table
38
+ DrLocator: Table
39
+ DuplicateFile: Table
40
+ Environment: Table
41
+ Error: Table
42
+ EventMapping: Table
43
+ Extension: Table
44
+ MIME: Table
45
+ FeatureComponents: Table
46
+ FileSFPCatalog: Table
47
+ SFPCatalog: Table
48
+ Font: Table
49
+ IniFile: Table
50
+ IniLocator: Table
51
+ InstallExecuteSequence: Table
52
+ InstallUISequence: Table
53
+ IsolatedComponent: Table
54
+ LaunchCondition: Table
55
+ ListBox: Table
56
+ ListView: Table
57
+ LockPermissions: Table
58
+ Media: Table
59
+ MoveFile: Table
60
+ MsiAssembly: Table
61
+ MsiAssemblyName: Table
62
+ MsiDigitalCertificate: Table
63
+ MsiDigitalSignature: Table
64
+ MsiFileHash: Table
65
+ MsiPatchHeaders: Table
66
+ ODBCAttribute: Table
67
+ ODBCDriver: Table
68
+ ODBCDataSource: Table
69
+ ODBCSourceAttribute: Table
70
+ ODBCTranslator: Table
71
+ Patch: Table
72
+ PatchPackage: Table
73
+ PublishComponent: Table
74
+ RadioButton: Table
75
+ Registry: Table
76
+ RegLocator: Table
77
+ RemoveFile: Table
78
+ RemoveIniFile: Table
79
+ RemoveRegistry: Table
80
+ ReserveCost: Table
81
+ SelfReg: Table
82
+ ServiceControl: Table
83
+ ServiceInstall: Table
84
+ Shortcut: Table
85
+ Signature: Table
86
+ TextStyle: Table
87
+ TypeLib: Table
88
+ UIText: Table
89
+ Upgrade: Table
90
+ Verb: Table
91
+
92
+ tables: list[Table]
93
+
94
+ _Validation_records: list[tuple[str, str, str, int | None, int | None, str | None, int | None, str | None, str | None, str]]
@@ -1,13 +1,13 @@
1
- import sys
2
- from typing_extensions import TypeAlias
3
-
4
- if sys.platform == "win32":
5
- _SequenceType: TypeAlias = list[tuple[str, str | None, int]]
6
-
7
- AdminExecuteSequence: _SequenceType
8
- AdminUISequence: _SequenceType
9
- AdvtExecuteSequence: _SequenceType
10
- InstallExecuteSequence: _SequenceType
11
- InstallUISequence: _SequenceType
12
-
13
- tables: list[str]
1
+ import sys
2
+ from typing_extensions import TypeAlias
3
+
4
+ if sys.platform == "win32":
5
+ _SequenceType: TypeAlias = list[tuple[str, str | None, int]]
6
+
7
+ AdminExecuteSequence: _SequenceType
8
+ AdminUISequence: _SequenceType
9
+ AdvtExecuteSequence: _SequenceType
10
+ InstallExecuteSequence: _SequenceType
11
+ InstallUISequence: _SequenceType
12
+
13
+ tables: list[str]
@@ -1,7 +1,7 @@
1
- import sys
2
-
3
- if sys.platform == "win32":
4
- ActionText: list[tuple[str, str, str | None]]
5
- UIText: list[tuple[str, str | None]]
6
- dirname: str
7
- tables: list[str]
1
+ import sys
2
+
3
+ if sys.platform == "win32":
4
+ ActionText: list[tuple[str, str, str | None]]
5
+ UIText: list[tuple[str, str | None]]
6
+ dirname: str
7
+ tables: list[str]
@@ -14,11 +14,17 @@ _Address: TypeAlias = str | tuple[str, int]
14
14
  class _ConnectionBase:
15
15
  def __init__(self, handle: SupportsIndex, readable: bool = True, writable: bool = True) -> None: ...
16
16
  @property
17
- def closed(self) -> bool: ... # undocumented
17
+ def closed(self) -> bool:
18
+ """True if the connection is closed"""
19
+ ...
18
20
  @property
19
- def readable(self) -> bool: ... # undocumented
21
+ def readable(self) -> bool:
22
+ """True if the connection is readable"""
23
+ ...
20
24
  @property
21
- def writable(self) -> bool: ... # undocumented
25
+ def writable(self) -> bool:
26
+ """True if the connection is writable"""
27
+ ...
22
28
  def fileno(self) -> int: ...
23
29
  def close(self) -> None: ...
24
30
  def send_bytes(self, buf: ReadableBuffer, offset: int = 0, size: int | None = None) -> None: ...
@@ -146,9 +146,19 @@ class BaseContext:
146
146
  def get_start_method(self, allow_none: bool) -> str | None: ...
147
147
  def set_start_method(self, method: str | None, force: bool = False) -> None: ...
148
148
  @property
149
- def reducer(self) -> str: ...
149
+ def reducer(self) -> str:
150
+ """
151
+ Controls how objects will be reduced to a form that can be
152
+ shared with other processes.
153
+ """
154
+ ...
150
155
  @reducer.setter
151
- def reducer(self, reduction: str) -> None: ...
156
+ def reducer(self, reduction: str) -> None:
157
+ """
158
+ Controls how objects will be reduced to a form that can be
159
+ shared with other processes.
160
+ """
161
+ ...
152
162
  def _check_available(self) -> None: ...
153
163
 
154
164
  class Process(BaseProcess):
@@ -58,7 +58,9 @@ Process = DummyProcess
58
58
  class Namespace:
59
59
  def __init__(self, **kwds: Any) -> None: ...
60
60
  def __getattr__(self, name: str, /) -> Any: ...
61
- def __setattr__(self, name: str, value: Any, /) -> None: ...
61
+ def __setattr__(self, name: str, value: Any, /) -> None:
62
+ """Implement setattr(self, name, value)."""
63
+ ...
62
64
 
63
65
  class Value:
64
66
  _typecode: Any
@@ -23,7 +23,9 @@ _VT = TypeVar("_VT")
23
23
  class Namespace:
24
24
  def __init__(self, **kwds: Any) -> None: ...
25
25
  def __getattr__(self, name: str, /) -> Any: ...
26
- def __setattr__(self, name: str, value: Any, /) -> None: ...
26
+ def __setattr__(self, name: str, value: Any, /) -> None:
27
+ """Implement setattr(self, name, value)."""
28
+ ...
27
29
 
28
30
  _Namespace: TypeAlias = Namespace
29
31
 
@@ -58,7 +60,13 @@ class ValueProxy(BaseProxy, Generic[_T]):
58
60
  def set(self, value: _T) -> None: ...
59
61
  value: _T
60
62
  if sys.version_info >= (3, 9):
61
- def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
63
+ def __class_getitem__(cls, item: Any, /) -> GenericAlias:
64
+ """
65
+ Represent a PEP 585 generic type
66
+
67
+ E.g. for t = list[int], t.__origin__ is list and t.__args__ is (int,).
68
+ """
69
+ ...
62
70
 
63
71
  class DictProxy(BaseProxy, MutableMapping[_KT, _VT]):
64
72
  __builtins__: ClassVar[dict[str, Any]]