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,21 +1,21 @@
1
- from _typeshed import Incomplete
2
- from collections.abc import Callable
3
- from typing import Any, ClassVar
4
-
5
- from ..config import PyPIRCCommand
6
-
7
- class register(PyPIRCCommand):
8
- description: str
9
- # Any to work around variance issues
10
- sub_commands: ClassVar[list[tuple[str, Callable[[Any], bool] | None]]]
11
- list_classifiers: int
12
- strict: int
13
- def initialize_options(self) -> None: ...
14
- def finalize_options(self) -> None: ...
15
- def run(self) -> None: ...
16
- def check_metadata(self) -> None: ...
17
- def classifiers(self) -> None: ...
18
- def verify_metadata(self) -> None: ...
19
- def send_metadata(self) -> None: ...
20
- def build_post_data(self, action): ...
21
- def post_to_server(self, data, auth: Incomplete | None = None): ...
1
+ from _typeshed import Incomplete
2
+ from collections.abc import Callable
3
+ from typing import Any, ClassVar
4
+
5
+ from ..config import PyPIRCCommand
6
+
7
+ class register(PyPIRCCommand):
8
+ description: str
9
+ # Any to work around variance issues
10
+ sub_commands: ClassVar[list[tuple[str, Callable[[Any], bool] | None]]]
11
+ list_classifiers: int
12
+ strict: int
13
+ def initialize_options(self) -> None: ...
14
+ def finalize_options(self) -> None: ...
15
+ def run(self) -> None: ...
16
+ def check_metadata(self) -> None: ...
17
+ def classifiers(self) -> None: ...
18
+ def verify_metadata(self) -> None: ...
19
+ def send_metadata(self) -> None: ...
20
+ def build_post_data(self, action): ...
21
+ def post_to_server(self, data, auth: Incomplete | None = None): ...
@@ -1,45 +1,45 @@
1
- from _typeshed import Incomplete, Unused
2
- from collections.abc import Callable
3
- from typing import Any, ClassVar
4
-
5
- from ..cmd import Command
6
-
7
- def show_formats() -> None: ...
8
-
9
- class sdist(Command):
10
- description: str
11
- def checking_metadata(self): ...
12
- user_options: ClassVar[list[tuple[str, str | None, str]]]
13
- boolean_options: ClassVar[list[str]]
14
- help_options: ClassVar[list[tuple[str, str | None, str, Callable[[], Unused]]]]
15
- negative_opt: ClassVar[dict[str, str]]
16
- # Any to work around variance issues
17
- sub_commands: ClassVar[list[tuple[str, Callable[[Any], bool] | None]]]
18
- READMES: ClassVar[tuple[str, ...]]
19
- template: Incomplete
20
- manifest: Incomplete
21
- use_defaults: int
22
- prune: int
23
- manifest_only: int
24
- force_manifest: int
25
- formats: Incomplete
26
- keep_temp: int
27
- dist_dir: Incomplete
28
- archive_files: Incomplete
29
- metadata_check: int
30
- owner: Incomplete
31
- group: Incomplete
32
- def initialize_options(self) -> None: ...
33
- def finalize_options(self) -> None: ...
34
- filelist: Incomplete
35
- def run(self) -> None: ...
36
- def check_metadata(self) -> None: ...
37
- def get_file_list(self) -> None: ...
38
- def add_defaults(self) -> None: ...
39
- def read_template(self) -> None: ...
40
- def prune_file_list(self) -> None: ...
41
- def write_manifest(self) -> None: ...
42
- def read_manifest(self) -> None: ...
43
- def make_release_tree(self, base_dir, files) -> None: ...
44
- def make_distribution(self) -> None: ...
45
- def get_archive_files(self): ...
1
+ from _typeshed import Incomplete, Unused
2
+ from collections.abc import Callable
3
+ from typing import Any, ClassVar
4
+
5
+ from ..cmd import Command
6
+
7
+ def show_formats() -> None: ...
8
+
9
+ class sdist(Command):
10
+ description: str
11
+ def checking_metadata(self): ...
12
+ user_options: ClassVar[list[tuple[str, str | None, str]]]
13
+ boolean_options: ClassVar[list[str]]
14
+ help_options: ClassVar[list[tuple[str, str | None, str, Callable[[], Unused]]]]
15
+ negative_opt: ClassVar[dict[str, str]]
16
+ # Any to work around variance issues
17
+ sub_commands: ClassVar[list[tuple[str, Callable[[Any], bool] | None]]]
18
+ READMES: ClassVar[tuple[str, ...]]
19
+ template: Incomplete
20
+ manifest: Incomplete
21
+ use_defaults: int
22
+ prune: int
23
+ manifest_only: int
24
+ force_manifest: int
25
+ formats: Incomplete
26
+ keep_temp: int
27
+ dist_dir: Incomplete
28
+ archive_files: Incomplete
29
+ metadata_check: int
30
+ owner: Incomplete
31
+ group: Incomplete
32
+ def initialize_options(self) -> None: ...
33
+ def finalize_options(self) -> None: ...
34
+ filelist: Incomplete
35
+ def run(self) -> None: ...
36
+ def check_metadata(self) -> None: ...
37
+ def get_file_list(self) -> None: ...
38
+ def add_defaults(self) -> None: ...
39
+ def read_template(self) -> None: ...
40
+ def prune_file_list(self) -> None: ...
41
+ def write_manifest(self) -> None: ...
42
+ def read_manifest(self) -> None: ...
43
+ def make_release_tree(self, base_dir, files) -> None: ...
44
+ def make_distribution(self) -> None: ...
45
+ def get_archive_files(self): ...
@@ -1,18 +1,18 @@
1
- from _typeshed import Incomplete
2
- from typing import ClassVar
3
-
4
- from ..config import PyPIRCCommand
5
-
6
- class upload(PyPIRCCommand):
7
- description: ClassVar[str]
8
- username: str
9
- password: str
10
- show_response: int
11
- sign: bool
12
- identity: Incomplete
13
- def initialize_options(self) -> None: ...
14
- repository: Incomplete
15
- realm: Incomplete
16
- def finalize_options(self) -> None: ...
17
- def run(self) -> None: ...
18
- def upload_file(self, command: str, pyversion: str, filename: str) -> None: ...
1
+ from _typeshed import Incomplete
2
+ from typing import ClassVar
3
+
4
+ from ..config import PyPIRCCommand
5
+
6
+ class upload(PyPIRCCommand):
7
+ description: ClassVar[str]
8
+ username: str
9
+ password: str
10
+ show_response: int
11
+ sign: bool
12
+ identity: Incomplete
13
+ def initialize_options(self) -> None: ...
14
+ repository: Incomplete
15
+ realm: Incomplete
16
+ def finalize_options(self) -> None: ...
17
+ def run(self) -> None: ...
18
+ def upload_file(self, command: str, pyversion: str, filename: str) -> None: ...
@@ -1,17 +1,17 @@
1
- from abc import abstractmethod
2
- from distutils.cmd import Command
3
- from typing import ClassVar
4
-
5
- DEFAULT_PYPIRC: str
6
-
7
- class PyPIRCCommand(Command):
8
- DEFAULT_REPOSITORY: ClassVar[str]
9
- DEFAULT_REALM: ClassVar[str]
10
- repository: None
11
- realm: None
12
- user_options: ClassVar[list[tuple[str, str | None, str]]]
13
- boolean_options: ClassVar[list[str]]
14
- def initialize_options(self) -> None: ...
15
- def finalize_options(self) -> None: ...
16
- @abstractmethod
17
- def run(self) -> None: ...
1
+ from abc import abstractmethod
2
+ from distutils.cmd import Command
3
+ from typing import ClassVar
4
+
5
+ DEFAULT_PYPIRC: str
6
+
7
+ class PyPIRCCommand(Command):
8
+ DEFAULT_REPOSITORY: ClassVar[str]
9
+ DEFAULT_REALM: ClassVar[str]
10
+ repository: None
11
+ realm: None
12
+ user_options: ClassVar[list[tuple[str, str | None, str]]]
13
+ boolean_options: ClassVar[list[str]]
14
+ def initialize_options(self) -> None: ...
15
+ def finalize_options(self) -> None: ...
16
+ @abstractmethod
17
+ def run(self) -> None: ...
@@ -1,58 +1,58 @@
1
- from _typeshed import Incomplete, StrOrBytesPath
2
- from collections.abc import Mapping
3
- from distutils.cmd import Command as Command
4
- from distutils.dist import Distribution as Distribution
5
- from distutils.extension import Extension as Extension
6
- from typing import Any, Final, Literal
7
-
8
- USAGE: Final[str]
9
-
10
- def gen_usage(script_name: StrOrBytesPath) -> str: ...
11
-
12
- setup_keywords: tuple[str, ...]
13
- extension_keywords: tuple[str, ...]
14
-
15
- def setup(
16
- *,
17
- name: str = ...,
18
- version: str = ...,
19
- description: str = ...,
20
- long_description: str = ...,
21
- author: str = ...,
22
- author_email: str = ...,
23
- maintainer: str = ...,
24
- maintainer_email: str = ...,
25
- url: str = ...,
26
- download_url: str = ...,
27
- packages: list[str] = ...,
28
- py_modules: list[str] = ...,
29
- scripts: list[str] = ...,
30
- ext_modules: list[Extension] = ...,
31
- classifiers: list[str] = ...,
32
- distclass: type[Distribution] = ...,
33
- script_name: str = ...,
34
- script_args: list[str] = ...,
35
- options: Mapping[str, Incomplete] = ...,
36
- license: str = ...,
37
- keywords: list[str] | str = ...,
38
- platforms: list[str] | str = ...,
39
- cmdclass: Mapping[str, type[Command]] = ...,
40
- data_files: list[tuple[str, list[str]]] = ...,
41
- package_dir: Mapping[str, str] = ...,
42
- obsoletes: list[str] = ...,
43
- provides: list[str] = ...,
44
- requires: list[str] = ...,
45
- command_packages: list[str] = ...,
46
- command_options: Mapping[str, Mapping[str, tuple[Incomplete, Incomplete]]] = ...,
47
- package_data: Mapping[str, list[str]] = ...,
48
- include_package_data: bool | Literal[0, 1] = ...,
49
- libraries: list[str] = ...,
50
- headers: list[str] = ...,
51
- ext_package: str = ...,
52
- include_dirs: list[str] = ...,
53
- password: str = ...,
54
- fullname: str = ...,
55
- # Custom Distributions could accept more params
56
- **attrs: Any,
57
- ) -> Distribution: ...
58
- def run_setup(script_name: str, script_args: list[str] | None = None, stop_after: str = "run") -> Distribution: ...
1
+ from _typeshed import Incomplete, StrOrBytesPath
2
+ from collections.abc import Mapping
3
+ from distutils.cmd import Command as Command
4
+ from distutils.dist import Distribution as Distribution
5
+ from distutils.extension import Extension as Extension
6
+ from typing import Any, Final, Literal
7
+
8
+ USAGE: Final[str]
9
+
10
+ def gen_usage(script_name: StrOrBytesPath) -> str: ...
11
+
12
+ setup_keywords: tuple[str, ...]
13
+ extension_keywords: tuple[str, ...]
14
+
15
+ def setup(
16
+ *,
17
+ name: str = ...,
18
+ version: str = ...,
19
+ description: str = ...,
20
+ long_description: str = ...,
21
+ author: str = ...,
22
+ author_email: str = ...,
23
+ maintainer: str = ...,
24
+ maintainer_email: str = ...,
25
+ url: str = ...,
26
+ download_url: str = ...,
27
+ packages: list[str] = ...,
28
+ py_modules: list[str] = ...,
29
+ scripts: list[str] = ...,
30
+ ext_modules: list[Extension] = ...,
31
+ classifiers: list[str] = ...,
32
+ distclass: type[Distribution] = ...,
33
+ script_name: str = ...,
34
+ script_args: list[str] = ...,
35
+ options: Mapping[str, Incomplete] = ...,
36
+ license: str = ...,
37
+ keywords: list[str] | str = ...,
38
+ platforms: list[str] | str = ...,
39
+ cmdclass: Mapping[str, type[Command]] = ...,
40
+ data_files: list[tuple[str, list[str]]] = ...,
41
+ package_dir: Mapping[str, str] = ...,
42
+ obsoletes: list[str] = ...,
43
+ provides: list[str] = ...,
44
+ requires: list[str] = ...,
45
+ command_packages: list[str] = ...,
46
+ command_options: Mapping[str, Mapping[str, tuple[Incomplete, Incomplete]]] = ...,
47
+ package_data: Mapping[str, list[str]] = ...,
48
+ include_package_data: bool | Literal[0, 1] = ...,
49
+ libraries: list[str] = ...,
50
+ headers: list[str] = ...,
51
+ ext_package: str = ...,
52
+ include_dirs: list[str] = ...,
53
+ password: str = ...,
54
+ fullname: str = ...,
55
+ # Custom Distributions could accept more params
56
+ **attrs: Any,
57
+ ) -> Distribution: ...
58
+ def run_setup(script_name: str, script_args: list[str] | None = None, stop_after: str = "run") -> Distribution: ...
@@ -1,20 +1,20 @@
1
- from distutils.unixccompiler import UnixCCompiler
2
- from distutils.version import LooseVersion
3
- from re import Pattern
4
- from typing import Final, Literal
5
-
6
- def get_msvcr() -> list[str] | None: ...
7
-
8
- class CygwinCCompiler(UnixCCompiler): ...
9
- class Mingw32CCompiler(CygwinCCompiler): ...
10
-
11
- CONFIG_H_OK: Final = "ok"
12
- CONFIG_H_NOTOK: Final = "not ok"
13
- CONFIG_H_UNCERTAIN: Final = "uncertain"
14
-
15
- def check_config_h() -> tuple[Literal["ok", "not ok", "uncertain"], str]: ...
16
-
17
- RE_VERSION: Final[Pattern[bytes]]
18
-
19
- def get_versions() -> tuple[LooseVersion | None, ...]: ...
20
- def is_cygwingcc() -> bool: ...
1
+ from distutils.unixccompiler import UnixCCompiler
2
+ from distutils.version import LooseVersion
3
+ from re import Pattern
4
+ from typing import Final, Literal
5
+
6
+ def get_msvcr() -> list[str] | None: ...
7
+
8
+ class CygwinCCompiler(UnixCCompiler): ...
9
+ class Mingw32CCompiler(CygwinCCompiler): ...
10
+
11
+ CONFIG_H_OK: Final = "ok"
12
+ CONFIG_H_NOTOK: Final = "not ok"
13
+ CONFIG_H_UNCERTAIN: Final = "uncertain"
14
+
15
+ def check_config_h() -> tuple[Literal["ok", "not ok", "uncertain"], str]: ...
16
+
17
+ RE_VERSION: Final[Pattern[bytes]]
18
+
19
+ def get_versions() -> tuple[LooseVersion | None, ...]: ...
20
+ def is_cygwingcc() -> bool: ...
@@ -1,3 +1,3 @@
1
- from typing import Final
2
-
3
- DEBUG: Final[str | None]
1
+ from typing import Final
2
+
3
+ DEBUG: Final[str | None]
@@ -1,14 +1,14 @@
1
- from _typeshed import StrOrBytesPath, SupportsLenAndGetItem
2
- from collections.abc import Iterable
3
- from typing import Literal, TypeVar
4
-
5
- _SourcesT = TypeVar("_SourcesT", bound=StrOrBytesPath)
6
- _TargetsT = TypeVar("_TargetsT", bound=StrOrBytesPath)
7
-
8
- def newer(source: StrOrBytesPath, target: StrOrBytesPath) -> bool | Literal[1]: ...
9
- def newer_pairwise(
10
- sources: SupportsLenAndGetItem[_SourcesT], targets: SupportsLenAndGetItem[_TargetsT]
11
- ) -> tuple[list[_SourcesT], list[_TargetsT]]: ...
12
- def newer_group(
13
- sources: Iterable[StrOrBytesPath], target: StrOrBytesPath, missing: Literal["error", "ignore", "newer"] = "error"
14
- ) -> Literal[0, 1]: ...
1
+ from _typeshed import StrOrBytesPath, SupportsLenAndGetItem
2
+ from collections.abc import Iterable
3
+ from typing import Literal, TypeVar
4
+
5
+ _SourcesT = TypeVar("_SourcesT", bound=StrOrBytesPath)
6
+ _TargetsT = TypeVar("_TargetsT", bound=StrOrBytesPath)
7
+
8
+ def newer(source: StrOrBytesPath, target: StrOrBytesPath) -> bool | Literal[1]: ...
9
+ def newer_pairwise(
10
+ sources: SupportsLenAndGetItem[_SourcesT], targets: SupportsLenAndGetItem[_TargetsT]
11
+ ) -> tuple[list[_SourcesT], list[_TargetsT]]: ...
12
+ def newer_group(
13
+ sources: Iterable[StrOrBytesPath], target: StrOrBytesPath, missing: Literal["error", "ignore", "newer"] = "error"
14
+ ) -> Literal[0, 1]: ...
@@ -1,23 +1,23 @@
1
- from _typeshed import StrOrBytesPath, StrPath
2
- from collections.abc import Iterable
3
- from typing import Literal
4
-
5
- def mkpath(name: str, mode: int = 0o777, verbose: bool | Literal[0, 1] = 1, dry_run: bool | Literal[0, 1] = 0) -> list[str]: ...
6
- def create_tree(
7
- base_dir: StrPath,
8
- files: Iterable[StrPath],
9
- mode: int = 0o777,
10
- verbose: bool | Literal[0, 1] = 1,
11
- dry_run: bool | Literal[0, 1] = 0,
12
- ) -> None: ...
13
- def copy_tree(
14
- src: StrPath,
15
- dst: str,
16
- preserve_mode: bool | Literal[0, 1] = 1,
17
- preserve_times: bool | Literal[0, 1] = 1,
18
- preserve_symlinks: bool | Literal[0, 1] = 0,
19
- update: bool | Literal[0, 1] = 0,
20
- verbose: bool | Literal[0, 1] = 1,
21
- dry_run: bool | Literal[0, 1] = 0,
22
- ) -> list[str]: ...
23
- def remove_tree(directory: StrOrBytesPath, verbose: bool | Literal[0, 1] = 1, dry_run: bool | Literal[0, 1] = 0) -> None: ...
1
+ from _typeshed import StrOrBytesPath, StrPath
2
+ from collections.abc import Iterable
3
+ from typing import Literal
4
+
5
+ def mkpath(name: str, mode: int = 0o777, verbose: bool | Literal[0, 1] = 1, dry_run: bool | Literal[0, 1] = 0) -> list[str]: ...
6
+ def create_tree(
7
+ base_dir: StrPath,
8
+ files: Iterable[StrPath],
9
+ mode: int = 0o777,
10
+ verbose: bool | Literal[0, 1] = 1,
11
+ dry_run: bool | Literal[0, 1] = 0,
12
+ ) -> None: ...
13
+ def copy_tree(
14
+ src: StrPath,
15
+ dst: str,
16
+ preserve_mode: bool | Literal[0, 1] = 1,
17
+ preserve_times: bool | Literal[0, 1] = 1,
18
+ preserve_symlinks: bool | Literal[0, 1] = 0,
19
+ update: bool | Literal[0, 1] = 0,
20
+ verbose: bool | Literal[0, 1] = 1,
21
+ dry_run: bool | Literal[0, 1] = 0,
22
+ ) -> list[str]: ...
23
+ def remove_tree(directory: StrOrBytesPath, verbose: bool | Literal[0, 1] = 1, dry_run: bool | Literal[0, 1] = 0) -> None: ...