basedpyright 1.24.0 → 1.25.0

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 (189) hide show
  1. package/dist/pyright-langserver.js +1 -1
  2. package/dist/pyright-langserver.js.LICENSE.txt +42 -0
  3. package/dist/pyright-langserver.js.map +1 -1
  4. package/dist/pyright.js +1 -1
  5. package/dist/pyright.js.map +1 -1
  6. package/dist/typeshed-fallback/stdlib/_asyncio.pyi +3 -25
  7. package/dist/typeshed-fallback/stdlib/_bisect.pyi +4 -44
  8. package/dist/typeshed-fallback/stdlib/_bootlocale.pyi +1 -1
  9. package/dist/typeshed-fallback/stdlib/_csv.pyi +2 -16
  10. package/dist/typeshed-fallback/stdlib/_dbm.pyi +1 -13
  11. package/dist/typeshed-fallback/stdlib/_decimal.pyi +1 -8
  12. package/dist/typeshed-fallback/stdlib/_dummy_thread.pyi +33 -33
  13. package/dist/typeshed-fallback/stdlib/_dummy_threading.pyi +164 -180
  14. package/dist/typeshed-fallback/stdlib/_gdbm.pyi +1 -39
  15. package/dist/typeshed-fallback/stdlib/_hashlib.pyi +7 -28
  16. package/dist/typeshed-fallback/stdlib/_imp.pyi +1 -3
  17. package/dist/typeshed-fallback/stdlib/_msi.pyi +92 -94
  18. package/dist/typeshed-fallback/stdlib/_sqlite3.pyi +6 -48
  19. package/dist/typeshed-fallback/stdlib/_ssl.pyi +1 -8
  20. package/dist/typeshed-fallback/stdlib/_thread.pyi +1 -8
  21. package/dist/typeshed-fallback/stdlib/_warnings.pyi +2 -6
  22. package/dist/typeshed-fallback/stdlib/aifc.pyi +91 -91
  23. package/dist/typeshed-fallback/stdlib/array.pyi +3 -17
  24. package/dist/typeshed-fallback/stdlib/asynchat.pyi +21 -21
  25. package/dist/typeshed-fallback/stdlib/asyncio/sslproto.pyi +4 -23
  26. package/dist/typeshed-fallback/stdlib/asyncore.pyi +90 -90
  27. package/dist/typeshed-fallback/stdlib/audioop.pyi +43 -95
  28. package/dist/typeshed-fallback/stdlib/binascii.pyi +5 -15
  29. package/dist/typeshed-fallback/stdlib/binhex.pyi +45 -45
  30. package/dist/typeshed-fallback/stdlib/builtins.pyi +8 -106
  31. package/dist/typeshed-fallback/stdlib/cgi.pyi +118 -118
  32. package/dist/typeshed-fallback/stdlib/cgitb.pyi +32 -32
  33. package/dist/typeshed-fallback/stdlib/chunk.pyi +20 -20
  34. package/dist/typeshed-fallback/stdlib/datetime.pyi +4 -12
  35. package/dist/typeshed-fallback/stdlib/distutils/__init__.pyi +5 -5
  36. package/dist/typeshed-fallback/stdlib/distutils/_msvccompiler.pyi +13 -13
  37. package/dist/typeshed-fallback/stdlib/distutils/archive_util.pyi +35 -35
  38. package/dist/typeshed-fallback/stdlib/distutils/bcppcompiler.pyi +3 -3
  39. package/dist/typeshed-fallback/stdlib/distutils/ccompiler.pyi +176 -176
  40. package/dist/typeshed-fallback/stdlib/distutils/cmd.pyi +229 -229
  41. package/dist/typeshed-fallback/stdlib/distutils/command/__init__.pyi +48 -48
  42. package/dist/typeshed-fallback/stdlib/distutils/command/bdist.pyi +27 -27
  43. package/dist/typeshed-fallback/stdlib/distutils/command/bdist_dumb.pyi +22 -22
  44. package/dist/typeshed-fallback/stdlib/distutils/command/bdist_msi.pyi +46 -46
  45. package/dist/typeshed-fallback/stdlib/distutils/command/bdist_rpm.pyi +53 -53
  46. package/dist/typeshed-fallback/stdlib/distutils/command/bdist_wininst.pyi +16 -16
  47. package/dist/typeshed-fallback/stdlib/distutils/command/build.pyi +34 -34
  48. package/dist/typeshed-fallback/stdlib/distutils/command/build_clib.pyi +29 -29
  49. package/dist/typeshed-fallback/stdlib/distutils/command/build_ext.pyi +52 -52
  50. package/dist/typeshed-fallback/stdlib/distutils/command/build_py.pyi +45 -45
  51. package/dist/typeshed-fallback/stdlib/distutils/command/build_scripts.pyi +25 -25
  52. package/dist/typeshed-fallback/stdlib/distutils/command/check.pyi +40 -40
  53. package/dist/typeshed-fallback/stdlib/distutils/command/clean.pyi +18 -18
  54. package/dist/typeshed-fallback/stdlib/distutils/command/config.pyi +84 -84
  55. package/dist/typeshed-fallback/stdlib/distutils/command/install.pyi +71 -71
  56. package/dist/typeshed-fallback/stdlib/distutils/command/install_data.pyi +20 -20
  57. package/dist/typeshed-fallback/stdlib/distutils/command/install_egg_info.pyi +19 -19
  58. package/dist/typeshed-fallback/stdlib/distutils/command/install_headers.pyi +17 -17
  59. package/dist/typeshed-fallback/stdlib/distutils/command/install_lib.pyi +26 -26
  60. package/dist/typeshed-fallback/stdlib/distutils/command/install_scripts.pyi +19 -19
  61. package/dist/typeshed-fallback/stdlib/distutils/command/register.pyi +21 -21
  62. package/dist/typeshed-fallback/stdlib/distutils/command/sdist.pyi +45 -45
  63. package/dist/typeshed-fallback/stdlib/distutils/command/upload.pyi +18 -18
  64. package/dist/typeshed-fallback/stdlib/distutils/config.pyi +17 -17
  65. package/dist/typeshed-fallback/stdlib/distutils/core.pyi +58 -58
  66. package/dist/typeshed-fallback/stdlib/distutils/cygwinccompiler.pyi +20 -20
  67. package/dist/typeshed-fallback/stdlib/distutils/debug.pyi +3 -3
  68. package/dist/typeshed-fallback/stdlib/distutils/dep_util.pyi +14 -14
  69. package/dist/typeshed-fallback/stdlib/distutils/dir_util.pyi +23 -23
  70. package/dist/typeshed-fallback/stdlib/distutils/dist.pyi +317 -317
  71. package/dist/typeshed-fallback/stdlib/distutils/errors.pyi +19 -19
  72. package/dist/typeshed-fallback/stdlib/distutils/extension.pyi +36 -36
  73. package/dist/typeshed-fallback/stdlib/distutils/fancy_getopt.pyi +34 -34
  74. package/dist/typeshed-fallback/stdlib/distutils/file_util.pyi +38 -38
  75. package/dist/typeshed-fallback/stdlib/distutils/filelist.pyi +58 -58
  76. package/dist/typeshed-fallback/stdlib/distutils/log.pyi +26 -26
  77. package/dist/typeshed-fallback/stdlib/distutils/msvccompiler.pyi +3 -3
  78. package/dist/typeshed-fallback/stdlib/distutils/spawn.pyi +10 -10
  79. package/dist/typeshed-fallback/stdlib/distutils/sysconfig.pyi +33 -33
  80. package/dist/typeshed-fallback/stdlib/distutils/text_file.pyi +21 -21
  81. package/dist/typeshed-fallback/stdlib/distutils/unixccompiler.pyi +3 -3
  82. package/dist/typeshed-fallback/stdlib/distutils/util.pyi +53 -53
  83. package/dist/typeshed-fallback/stdlib/distutils/version.pyi +36 -38
  84. package/dist/typeshed-fallback/stdlib/dummy_threading.pyi +2 -2
  85. package/dist/typeshed-fallback/stdlib/encodings/mac_centeuro.pyi +21 -21
  86. package/dist/typeshed-fallback/stdlib/formatter.pyi +88 -88
  87. package/dist/typeshed-fallback/stdlib/hmac.pyi +2 -30
  88. package/dist/typeshed-fallback/stdlib/imghdr.pyi +17 -17
  89. package/dist/typeshed-fallback/stdlib/imp.pyi +62 -62
  90. package/dist/typeshed-fallback/stdlib/importlib/metadata/__init__.pyi +7 -36
  91. package/dist/typeshed-fallback/stdlib/lib2to3/btm_matcher.pyi +28 -28
  92. package/dist/typeshed-fallback/stdlib/lib2to3/fixer_base.pyi +42 -42
  93. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_apply.pyi +8 -8
  94. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_asserts.pyi +10 -10
  95. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_basestring.pyi +8 -8
  96. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_buffer.pyi +8 -8
  97. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_dict.pyi +16 -16
  98. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_except.pyi +14 -14
  99. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_exec.pyi +8 -8
  100. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_execfile.pyi +8 -8
  101. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_exitfunc.pyi +13 -13
  102. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_filter.pyi +9 -9
  103. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_funcattrs.pyi +8 -8
  104. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_future.pyi +8 -8
  105. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_getcwdu.pyi +8 -8
  106. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_has_key.pyi +8 -8
  107. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_idioms.pyi +15 -15
  108. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_import.pyi +16 -16
  109. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_imports.pyi +21 -21
  110. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_imports2.pyi +8 -8
  111. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_input.pyi +11 -11
  112. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_intern.pyi +9 -9
  113. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_isinstance.pyi +8 -8
  114. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_itertools.pyi +9 -9
  115. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_itertools_imports.pyi +7 -7
  116. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_long.pyi +7 -7
  117. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_map.pyi +9 -9
  118. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_metaclass.pyi +17 -17
  119. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_methodattrs.pyi +10 -10
  120. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_ne.pyi +8 -8
  121. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_next.pyi +19 -19
  122. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_nonzero.pyi +8 -8
  123. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_numliterals.pyi +8 -8
  124. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_operator.pyi +12 -12
  125. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_paren.pyi +8 -8
  126. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_print.pyi +12 -12
  127. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_raise.pyi +8 -8
  128. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_raw_input.pyi +8 -8
  129. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_reduce.pyi +8 -8
  130. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_reload.pyi +9 -9
  131. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_renames.pyi +17 -17
  132. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_repr.pyi +8 -8
  133. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_set_literal.pyi +7 -7
  134. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_standarderror.pyi +8 -8
  135. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_sys_exc.pyi +9 -9
  136. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_throw.pyi +8 -8
  137. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_tuple_params.pyi +17 -17
  138. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_types.pyi +8 -8
  139. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_unicode.pyi +12 -12
  140. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_urllib.pyi +15 -15
  141. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_ws_comma.pyi +12 -12
  142. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_xrange.pyi +20 -20
  143. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_xreadlines.pyi +8 -8
  144. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_zip.pyi +9 -9
  145. package/dist/typeshed-fallback/stdlib/lib2to3/main.pyi +42 -42
  146. package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/__init__.pyi +9 -9
  147. package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/driver.pyi +27 -27
  148. package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/grammar.pyi +24 -24
  149. package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/literals.pyi +7 -7
  150. package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/parse.pyi +30 -30
  151. package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/pgen.pyi +50 -50
  152. package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/token.pyi +69 -69
  153. package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/tokenize.pyi +96 -96
  154. package/dist/typeshed-fallback/stdlib/lib2to3/pygram.pyi +114 -114
  155. package/dist/typeshed-fallback/stdlib/lib2to3/pytree.pyi +117 -127
  156. package/dist/typeshed-fallback/stdlib/lib2to3/refactor.pyi +82 -82
  157. package/dist/typeshed-fallback/stdlib/mailcap.pyi +11 -11
  158. package/dist/typeshed-fallback/stdlib/marshal.pyi +4 -52
  159. package/dist/typeshed-fallback/stdlib/math.pyi +2 -6
  160. package/dist/typeshed-fallback/stdlib/msilib/__init__.pyi +177 -177
  161. package/dist/typeshed-fallback/stdlib/msilib/schema.pyi +94 -94
  162. package/dist/typeshed-fallback/stdlib/msilib/sequence.pyi +13 -13
  163. package/dist/typeshed-fallback/stdlib/msilib/text.pyi +7 -7
  164. package/dist/typeshed-fallback/stdlib/nis.pyi +4 -31
  165. package/dist/typeshed-fallback/stdlib/nntplib.pyi +125 -125
  166. package/dist/typeshed-fallback/stdlib/os/__init__.pyi +1 -8
  167. package/dist/typeshed-fallback/stdlib/parser.pyi +24 -55
  168. package/dist/typeshed-fallback/stdlib/pipes.pyi +16 -16
  169. package/dist/typeshed-fallback/stdlib/smtpd.pyi +91 -91
  170. package/dist/typeshed-fallback/stdlib/sndhdr.pyi +14 -14
  171. package/dist/typeshed-fallback/stdlib/spwd.pyi +13 -66
  172. package/dist/typeshed-fallback/stdlib/sqlite3/__init__.pyi +2 -6
  173. package/dist/typeshed-fallback/stdlib/ssl.pyi +0 -4
  174. package/dist/typeshed-fallback/stdlib/sunau.pyi +86 -86
  175. package/dist/typeshed-fallback/stdlib/symbol.pyi +93 -93
  176. package/dist/typeshed-fallback/stdlib/sys/__init__.pyi +4 -40
  177. package/dist/typeshed-fallback/stdlib/telnetlib.pyi +123 -123
  178. package/dist/typeshed-fallback/stdlib/tkinter/tix.pyi +299 -299
  179. package/dist/typeshed-fallback/stdlib/types.pyi +2 -6
  180. package/dist/typeshed-fallback/stdlib/typing.pyi +2 -6
  181. package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +544 -559
  182. package/dist/typeshed-fallback/stdlib/unittest/__init__.pyi +1 -6
  183. package/dist/typeshed-fallback/stdlib/uu.pyi +13 -13
  184. package/dist/typeshed-fallback/stdlib/xdrlib.pyi +57 -57
  185. package/dist/typeshed-fallback/stdlib/xxlimited.pyi +1 -3
  186. package/dist/typeshed-fallback/stdlib/zipimport.pyi +0 -29
  187. package/dist/typeshed-fallback/stdlib/zlib.pyi +1 -10
  188. package/dist/typeshed-fallback/stdlib/zoneinfo/__init__.pyi +3 -9
  189. package/package.json +1 -1
@@ -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]
@@ -1,36 +1,9 @@
1
- """This module contains functions for accessing NIS maps."""
2
-
3
1
  import sys
4
2
 
5
3
  if sys.platform != "win32":
6
- def cat(map: str, domain: str = ...) -> dict[str, str]:
7
- """
8
- cat(map, domain = defaultdomain)
9
- Returns the entire map as a dictionary. Optionally domain can be
10
- specified but it defaults to the system default domain.
11
- """
12
- ...
13
- def get_default_domain() -> str:
14
- """
15
- get_default_domain() -> str
16
- Corresponds to the C library yp_get_default_domain() call, returning
17
- the default NIS domain.
18
- """
19
- ...
20
- def maps(domain: str = ...) -> list[str]:
21
- """
22
- maps(domain = defaultdomain)
23
- Returns an array of all available NIS maps within a domain. If domain
24
- is not specified it defaults to the system default domain.
25
- """
26
- ...
27
- def match(key: str, map: str, domain: str = ...) -> str:
28
- """
29
- match(key, map, domain = defaultdomain)
30
- Corresponds to the C library yp_match() call, returning the value of
31
- key in the given map. Optionally domain can be specified but it
32
- defaults to the system default domain.
33
- """
34
- ...
4
+ def cat(map: str, domain: str = ...) -> dict[str, str]: ...
5
+ def get_default_domain() -> str: ...
6
+ def maps(domain: str = ...) -> list[str]: ...
7
+ def match(key: str, map: str, domain: str = ...) -> str: ...
35
8
 
36
9
  class error(Exception): ...
@@ -1,125 +1,125 @@
1
- import datetime
2
- import socket
3
- import ssl
4
- import sys
5
- from _typeshed import Unused
6
- from builtins import list as _list # conflicts with a method named "list"
7
- from collections.abc import Iterable
8
- from typing import IO, Any, Final, NamedTuple
9
- from typing_extensions import Self, TypeAlias
10
-
11
- __all__ = [
12
- "NNTP",
13
- "NNTPError",
14
- "NNTPReplyError",
15
- "NNTPTemporaryError",
16
- "NNTPPermanentError",
17
- "NNTPProtocolError",
18
- "NNTPDataError",
19
- "decode_header",
20
- "NNTP_SSL",
21
- ]
22
-
23
- _File: TypeAlias = IO[bytes] | bytes | str | None
24
-
25
- class NNTPError(Exception):
26
- response: str
27
-
28
- class NNTPReplyError(NNTPError): ...
29
- class NNTPTemporaryError(NNTPError): ...
30
- class NNTPPermanentError(NNTPError): ...
31
- class NNTPProtocolError(NNTPError): ...
32
- class NNTPDataError(NNTPError): ...
33
-
34
- NNTP_PORT: Final = 119
35
- NNTP_SSL_PORT: Final = 563
36
-
37
- class GroupInfo(NamedTuple):
38
- group: str
39
- last: str
40
- first: str
41
- flag: str
42
-
43
- class ArticleInfo(NamedTuple):
44
- number: int
45
- message_id: str
46
- lines: list[bytes]
47
-
48
- def decode_header(header_str: str) -> str: ...
49
-
50
- class NNTP:
51
- encoding: str
52
- errors: str
53
-
54
- host: str
55
- port: int
56
- sock: socket.socket
57
- file: IO[bytes]
58
- debugging: int
59
- welcome: str
60
- readermode_afterauth: bool
61
- tls_on: bool
62
- authenticated: bool
63
- nntp_implementation: str
64
- nntp_version: int
65
- def __init__(
66
- self,
67
- host: str,
68
- port: int = 119,
69
- user: str | None = None,
70
- password: str | None = None,
71
- readermode: bool | None = None,
72
- usenetrc: bool = False,
73
- timeout: float = ...,
74
- ) -> None: ...
75
- def __enter__(self) -> Self: ...
76
- def __exit__(self, *args: Unused) -> None: ...
77
- def getwelcome(self) -> str: ...
78
- def getcapabilities(self) -> dict[str, _list[str]]: ...
79
- def set_debuglevel(self, level: int) -> None: ...
80
- def debug(self, level: int) -> None: ...
81
- def capabilities(self) -> tuple[str, dict[str, _list[str]]]: ...
82
- def newgroups(self, date: datetime.date | datetime.datetime, *, file: _File = None) -> tuple[str, _list[str]]: ...
83
- def newnews(self, group: str, date: datetime.date | datetime.datetime, *, file: _File = None) -> tuple[str, _list[str]]: ...
84
- def list(self, group_pattern: str | None = None, *, file: _File = None) -> tuple[str, _list[str]]: ...
85
- def description(self, group: str) -> str: ...
86
- def descriptions(self, group_pattern: str) -> tuple[str, dict[str, str]]: ...
87
- def group(self, name: str) -> tuple[str, int, int, int, str]: ...
88
- def help(self, *, file: _File = None) -> tuple[str, _list[str]]: ...
89
- def stat(self, message_spec: Any = None) -> tuple[str, int, str]: ...
90
- def next(self) -> tuple[str, int, str]: ...
91
- def last(self) -> tuple[str, int, str]: ...
92
- def head(self, message_spec: Any = None, *, file: _File = None) -> tuple[str, ArticleInfo]: ...
93
- def body(self, message_spec: Any = None, *, file: _File = None) -> tuple[str, ArticleInfo]: ...
94
- def article(self, message_spec: Any = None, *, file: _File = None) -> tuple[str, ArticleInfo]: ...
95
- def slave(self) -> str: ...
96
- def xhdr(self, hdr: str, str: Any, *, file: _File = None) -> tuple[str, _list[str]]: ...
97
- def xover(self, start: int, end: int, *, file: _File = None) -> tuple[str, _list[tuple[int, dict[str, str]]]]: ...
98
- def over(
99
- self, message_spec: None | str | _list[Any] | tuple[Any, ...], *, file: _File = None
100
- ) -> tuple[str, _list[tuple[int, dict[str, str]]]]: ...
101
- if sys.version_info < (3, 9):
102
- def xgtitle(self, group: str, *, file: _File = None) -> tuple[str, _list[tuple[str, str]]]: ...
103
- def xpath(self, id: Any) -> tuple[str, str]: ...
104
-
105
- def date(self) -> tuple[str, datetime.datetime]: ...
106
- def post(self, data: bytes | Iterable[bytes]) -> str: ...
107
- def ihave(self, message_id: Any, data: bytes | Iterable[bytes]) -> str: ...
108
- def quit(self) -> str: ...
109
- def login(self, user: str | None = None, password: str | None = None, usenetrc: bool = True) -> None: ...
110
- def starttls(self, context: ssl.SSLContext | None = None) -> None: ...
111
-
112
- class NNTP_SSL(NNTP):
113
- ssl_context: ssl.SSLContext | None
114
- sock: ssl.SSLSocket
115
- def __init__(
116
- self,
117
- host: str,
118
- port: int = 563,
119
- user: str | None = None,
120
- password: str | None = None,
121
- ssl_context: ssl.SSLContext | None = None,
122
- readermode: bool | None = None,
123
- usenetrc: bool = False,
124
- timeout: float = ...,
125
- ) -> None: ...
1
+ import datetime
2
+ import socket
3
+ import ssl
4
+ import sys
5
+ from _typeshed import Unused
6
+ from builtins import list as _list # conflicts with a method named "list"
7
+ from collections.abc import Iterable
8
+ from typing import IO, Any, Final, NamedTuple
9
+ from typing_extensions import Self, TypeAlias
10
+
11
+ __all__ = [
12
+ "NNTP",
13
+ "NNTPError",
14
+ "NNTPReplyError",
15
+ "NNTPTemporaryError",
16
+ "NNTPPermanentError",
17
+ "NNTPProtocolError",
18
+ "NNTPDataError",
19
+ "decode_header",
20
+ "NNTP_SSL",
21
+ ]
22
+
23
+ _File: TypeAlias = IO[bytes] | bytes | str | None
24
+
25
+ class NNTPError(Exception):
26
+ response: str
27
+
28
+ class NNTPReplyError(NNTPError): ...
29
+ class NNTPTemporaryError(NNTPError): ...
30
+ class NNTPPermanentError(NNTPError): ...
31
+ class NNTPProtocolError(NNTPError): ...
32
+ class NNTPDataError(NNTPError): ...
33
+
34
+ NNTP_PORT: Final = 119
35
+ NNTP_SSL_PORT: Final = 563
36
+
37
+ class GroupInfo(NamedTuple):
38
+ group: str
39
+ last: str
40
+ first: str
41
+ flag: str
42
+
43
+ class ArticleInfo(NamedTuple):
44
+ number: int
45
+ message_id: str
46
+ lines: list[bytes]
47
+
48
+ def decode_header(header_str: str) -> str: ...
49
+
50
+ class NNTP:
51
+ encoding: str
52
+ errors: str
53
+
54
+ host: str
55
+ port: int
56
+ sock: socket.socket
57
+ file: IO[bytes]
58
+ debugging: int
59
+ welcome: str
60
+ readermode_afterauth: bool
61
+ tls_on: bool
62
+ authenticated: bool
63
+ nntp_implementation: str
64
+ nntp_version: int
65
+ def __init__(
66
+ self,
67
+ host: str,
68
+ port: int = 119,
69
+ user: str | None = None,
70
+ password: str | None = None,
71
+ readermode: bool | None = None,
72
+ usenetrc: bool = False,
73
+ timeout: float = ...,
74
+ ) -> None: ...
75
+ def __enter__(self) -> Self: ...
76
+ def __exit__(self, *args: Unused) -> None: ...
77
+ def getwelcome(self) -> str: ...
78
+ def getcapabilities(self) -> dict[str, _list[str]]: ...
79
+ def set_debuglevel(self, level: int) -> None: ...
80
+ def debug(self, level: int) -> None: ...
81
+ def capabilities(self) -> tuple[str, dict[str, _list[str]]]: ...
82
+ def newgroups(self, date: datetime.date | datetime.datetime, *, file: _File = None) -> tuple[str, _list[str]]: ...
83
+ def newnews(self, group: str, date: datetime.date | datetime.datetime, *, file: _File = None) -> tuple[str, _list[str]]: ...
84
+ def list(self, group_pattern: str | None = None, *, file: _File = None) -> tuple[str, _list[str]]: ...
85
+ def description(self, group: str) -> str: ...
86
+ def descriptions(self, group_pattern: str) -> tuple[str, dict[str, str]]: ...
87
+ def group(self, name: str) -> tuple[str, int, int, int, str]: ...
88
+ def help(self, *, file: _File = None) -> tuple[str, _list[str]]: ...
89
+ def stat(self, message_spec: Any = None) -> tuple[str, int, str]: ...
90
+ def next(self) -> tuple[str, int, str]: ...
91
+ def last(self) -> tuple[str, int, str]: ...
92
+ def head(self, message_spec: Any = None, *, file: _File = None) -> tuple[str, ArticleInfo]: ...
93
+ def body(self, message_spec: Any = None, *, file: _File = None) -> tuple[str, ArticleInfo]: ...
94
+ def article(self, message_spec: Any = None, *, file: _File = None) -> tuple[str, ArticleInfo]: ...
95
+ def slave(self) -> str: ...
96
+ def xhdr(self, hdr: str, str: Any, *, file: _File = None) -> tuple[str, _list[str]]: ...
97
+ def xover(self, start: int, end: int, *, file: _File = None) -> tuple[str, _list[tuple[int, dict[str, str]]]]: ...
98
+ def over(
99
+ self, message_spec: None | str | _list[Any] | tuple[Any, ...], *, file: _File = None
100
+ ) -> tuple[str, _list[tuple[int, dict[str, str]]]]: ...
101
+ if sys.version_info < (3, 9):
102
+ def xgtitle(self, group: str, *, file: _File = None) -> tuple[str, _list[tuple[str, str]]]: ...
103
+ def xpath(self, id: Any) -> tuple[str, str]: ...
104
+
105
+ def date(self) -> tuple[str, datetime.datetime]: ...
106
+ def post(self, data: bytes | Iterable[bytes]) -> str: ...
107
+ def ihave(self, message_id: Any, data: bytes | Iterable[bytes]) -> str: ...
108
+ def quit(self) -> str: ...
109
+ def login(self, user: str | None = None, password: str | None = None, usenetrc: bool = True) -> None: ...
110
+ def starttls(self, context: ssl.SSLContext | None = None) -> None: ...
111
+
112
+ class NNTP_SSL(NNTP):
113
+ ssl_context: ssl.SSLContext | None
114
+ sock: ssl.SSLSocket
115
+ def __init__(
116
+ self,
117
+ host: str,
118
+ port: int = 563,
119
+ user: str | None = None,
120
+ password: str | None = None,
121
+ ssl_context: ssl.SSLContext | None = None,
122
+ readermode: bool | None = None,
123
+ usenetrc: bool = False,
124
+ timeout: float = ...,
125
+ ) -> None: ...
@@ -1416,14 +1416,7 @@ if sys.version_info >= (3, 11):
1416
1416
  ...
1417
1417
 
1418
1418
  else:
1419
- def lseek(fd: int, position: int, how: int, /) -> int:
1420
- """
1421
- Set the position of a file descriptor. Return the new position.
1422
-
1423
- Return the new cursor position in number of bytes
1424
- relative to the beginning of the file.
1425
- """
1426
- ...
1419
+ def lseek(fd: int, position: int, how: int, /) -> int: ...
1427
1420
 
1428
1421
  def open(path: StrOrBytesPath, flags: int, mode: int = 0o777, *, dir_fd: int | None = None) -> int:
1429
1422
  """
@@ -1,55 +1,24 @@
1
- """This is an interface to Python's internal parser."""
2
-
3
- from _typeshed import StrOrBytesPath
4
- from collections.abc import Sequence
5
- from types import CodeType
6
- from typing import Any, final
7
-
8
- def expr(source: str) -> STType:
9
- """Creates an ST object from an expression."""
10
- ...
11
- def suite(source: str) -> STType:
12
- """Creates an ST object from a suite."""
13
- ...
14
- def sequence2st(sequence: Sequence[Any]) -> STType:
15
- """Creates an ST object from a tree representation."""
16
- ...
17
- def tuple2st(sequence: Sequence[Any]) -> STType:
18
- """Creates an ST object from a tree representation."""
19
- ...
20
- def st2list(st: STType, line_info: bool = ..., col_info: bool = ...) -> list[Any]:
21
- """Creates a list-tree representation of an ST."""
22
- ...
23
- def st2tuple(st: STType, line_info: bool = ..., col_info: bool = ...) -> tuple[Any, ...]:
24
- """Creates a tuple-tree representation of an ST."""
25
- ...
26
- def compilest(st: STType, filename: StrOrBytesPath = ...) -> CodeType:
27
- """Compiles an ST object into a code object."""
28
- ...
29
- def isexpr(st: STType) -> bool:
30
- """Determines if an ST object was created from an expression."""
31
- ...
32
- def issuite(st: STType) -> bool:
33
- """Determines if an ST object was created from a suite."""
34
- ...
35
-
36
- class ParserError(Exception): ...
37
-
38
- @final
39
- class STType:
40
- """Intermediate representation of a Python parse tree."""
41
- def compile(self, filename: StrOrBytesPath = ...) -> CodeType:
42
- """Compile this ST object into a code object."""
43
- ...
44
- def isexpr(self) -> bool:
45
- """Determines if this ST object was created from an expression."""
46
- ...
47
- def issuite(self) -> bool:
48
- """Determines if this ST object was created from a suite."""
49
- ...
50
- def tolist(self, line_info: bool = ..., col_info: bool = ...) -> list[Any]:
51
- """Creates a list-tree representation of this ST."""
52
- ...
53
- def totuple(self, line_info: bool = ..., col_info: bool = ...) -> tuple[Any, ...]:
54
- """Creates a tuple-tree representation of this ST."""
55
- ...
1
+ from _typeshed import StrOrBytesPath
2
+ from collections.abc import Sequence
3
+ from types import CodeType
4
+ from typing import Any, final
5
+
6
+ def expr(source: str) -> STType: ...
7
+ def suite(source: str) -> STType: ...
8
+ def sequence2st(sequence: Sequence[Any]) -> STType: ...
9
+ def tuple2st(sequence: Sequence[Any]) -> STType: ...
10
+ def st2list(st: STType, line_info: bool = ..., col_info: bool = ...) -> list[Any]: ...
11
+ def st2tuple(st: STType, line_info: bool = ..., col_info: bool = ...) -> tuple[Any, ...]: ...
12
+ def compilest(st: STType, filename: StrOrBytesPath = ...) -> CodeType: ...
13
+ def isexpr(st: STType) -> bool: ...
14
+ def issuite(st: STType) -> bool: ...
15
+
16
+ class ParserError(Exception): ...
17
+
18
+ @final
19
+ class STType:
20
+ def compile(self, filename: StrOrBytesPath = ...) -> CodeType: ...
21
+ def isexpr(self) -> bool: ...
22
+ def issuite(self) -> bool: ...
23
+ def tolist(self, line_info: bool = ..., col_info: bool = ...) -> list[Any]: ...
24
+ def totuple(self, line_info: bool = ..., col_info: bool = ...) -> tuple[Any, ...]: ...
@@ -1,16 +1,16 @@
1
- import os
2
-
3
- __all__ = ["Template"]
4
-
5
- class Template:
6
- def reset(self) -> None: ...
7
- def clone(self) -> Template: ...
8
- def debug(self, flag: bool) -> None: ...
9
- def append(self, cmd: str, kind: str) -> None: ...
10
- def prepend(self, cmd: str, kind: str) -> None: ...
11
- def open(self, file: str, rw: str) -> os._wrap_close: ...
12
- def copy(self, infile: str, outfile: str) -> int: ...
13
-
14
- # Not documented, but widely used.
15
- # Documented as shlex.quote since 3.3.
16
- def quote(s: str) -> str: ...
1
+ import os
2
+
3
+ __all__ = ["Template"]
4
+
5
+ class Template:
6
+ def reset(self) -> None: ...
7
+ def clone(self) -> Template: ...
8
+ def debug(self, flag: bool) -> None: ...
9
+ def append(self, cmd: str, kind: str) -> None: ...
10
+ def prepend(self, cmd: str, kind: str) -> None: ...
11
+ def open(self, file: str, rw: str) -> os._wrap_close: ...
12
+ def copy(self, infile: str, outfile: str) -> int: ...
13
+
14
+ # Not documented, but widely used.
15
+ # Documented as shlex.quote since 3.3.
16
+ def quote(s: str) -> str: ...