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,317 +1,317 @@
1
- from _typeshed import Incomplete, StrOrBytesPath, StrPath, SupportsWrite
2
- from collections.abc import Iterable, MutableMapping
3
- from distutils.cmd import Command
4
- from distutils.command.bdist import bdist
5
- from distutils.command.bdist_dumb import bdist_dumb
6
- from distutils.command.bdist_rpm import bdist_rpm
7
- from distutils.command.build import build
8
- from distutils.command.build_clib import build_clib
9
- from distutils.command.build_ext import build_ext
10
- from distutils.command.build_py import build_py
11
- from distutils.command.build_scripts import build_scripts
12
- from distutils.command.check import check
13
- from distutils.command.clean import clean
14
- from distutils.command.config import config
15
- from distutils.command.install import install
16
- from distutils.command.install_data import install_data
17
- from distutils.command.install_egg_info import install_egg_info
18
- from distutils.command.install_headers import install_headers
19
- from distutils.command.install_lib import install_lib
20
- from distutils.command.install_scripts import install_scripts
21
- from distutils.command.register import register
22
- from distutils.command.sdist import sdist
23
- from distutils.command.upload import upload
24
- from re import Pattern
25
- from typing import IO, ClassVar, Literal, TypeVar, overload
26
- from typing_extensions import TypeAlias
27
-
28
- command_re: Pattern[str]
29
-
30
- _OptionsList: TypeAlias = list[tuple[str, str | None, str, int] | tuple[str, str | None, str]]
31
- _CommandT = TypeVar("_CommandT", bound=Command)
32
-
33
- class DistributionMetadata:
34
- def __init__(self, path: StrOrBytesPath | None = None) -> None: ...
35
- name: str | None
36
- version: str | None
37
- author: str | None
38
- author_email: str | None
39
- maintainer: str | None
40
- maintainer_email: str | None
41
- url: str | None
42
- license: str | None
43
- description: str | None
44
- long_description: str | None
45
- keywords: str | list[str] | None
46
- platforms: str | list[str] | None
47
- classifiers: str | list[str] | None
48
- download_url: str | None
49
- provides: list[str] | None
50
- requires: list[str] | None
51
- obsoletes: list[str] | None
52
- def read_pkg_file(self, file: IO[str]) -> None: ...
53
- def write_pkg_info(self, base_dir: StrPath) -> None: ...
54
- def write_pkg_file(self, file: SupportsWrite[str]) -> None: ...
55
- def get_name(self) -> str: ...
56
- def get_version(self) -> str: ...
57
- def get_fullname(self) -> str: ...
58
- def get_author(self) -> str: ...
59
- def get_author_email(self) -> str: ...
60
- def get_maintainer(self) -> str: ...
61
- def get_maintainer_email(self) -> str: ...
62
- def get_contact(self) -> str: ...
63
- def get_contact_email(self) -> str: ...
64
- def get_url(self) -> str: ...
65
- def get_license(self) -> str: ...
66
- def get_licence(self) -> str: ...
67
- def get_description(self) -> str: ...
68
- def get_long_description(self) -> str: ...
69
- def get_keywords(self) -> str | list[str]: ...
70
- def get_platforms(self) -> str | list[str]: ...
71
- def get_classifiers(self) -> str | list[str]: ...
72
- def get_download_url(self) -> str: ...
73
- def get_requires(self) -> list[str]: ...
74
- def set_requires(self, value: Iterable[str]) -> None: ...
75
- def get_provides(self) -> list[str]: ...
76
- def set_provides(self, value: Iterable[str]) -> None: ...
77
- def get_obsoletes(self) -> list[str]: ...
78
- def set_obsoletes(self, value: Iterable[str]) -> None: ...
79
-
80
- class Distribution:
81
- cmdclass: dict[str, type[Command]]
82
- metadata: DistributionMetadata
83
- def __init__(self, attrs: MutableMapping[str, Incomplete] | None = None) -> None: ...
84
- def get_option_dict(self, command: str) -> dict[str, tuple[str, str]]: ...
85
- def parse_config_files(self, filenames: Iterable[str] | None = None) -> None: ...
86
- global_options: ClassVar[_OptionsList]
87
- common_usage: ClassVar[str]
88
- display_options: ClassVar[_OptionsList]
89
- display_option_names: ClassVar[list[str]]
90
- negative_opt: ClassVar[dict[str, str]]
91
- verbose: Literal[0, 1]
92
- dry_run: Literal[0, 1]
93
- help: Literal[0, 1]
94
- command_packages: list[str] | None
95
- script_name: str | None
96
- script_args: list[str] | None
97
- command_options: dict[str, dict[str, tuple[str, str]]]
98
- dist_files: list[tuple[str, str, str]]
99
- packages: Incomplete
100
- package_data: dict[str, list[str]]
101
- package_dir: Incomplete
102
- py_modules: Incomplete
103
- libraries: Incomplete
104
- headers: Incomplete
105
- ext_modules: Incomplete
106
- ext_package: Incomplete
107
- include_dirs: Incomplete
108
- extra_path: Incomplete
109
- scripts: Incomplete
110
- data_files: Incomplete
111
- password: str
112
- command_obj: Incomplete
113
- have_run: Incomplete
114
- want_user_cfg: bool
115
- def dump_option_dicts(
116
- self, header: Incomplete | None = None, commands: Incomplete | None = None, indent: str = ""
117
- ) -> None: ...
118
- def find_config_files(self): ...
119
- commands: Incomplete
120
- def parse_command_line(self): ...
121
- def finalize_options(self) -> None: ...
122
- def handle_display_options(self, option_order): ...
123
- def print_command_list(self, commands, header, max_length) -> None: ...
124
- def print_commands(self) -> None: ...
125
- def get_command_list(self): ...
126
- def get_command_packages(self): ...
127
- # NOTE: This list comes directly from the distutils/command folder. Minus bdist_msi and bdist_wininst.
128
- @overload
129
- def get_command_obj(self, command: Literal["bdist"], create: Literal[1, True] = 1) -> bdist: ...
130
- @overload
131
- def get_command_obj(self, command: Literal["bdist_dumb"], create: Literal[1, True] = 1) -> bdist_dumb: ...
132
- @overload
133
- def get_command_obj(self, command: Literal["bdist_rpm"], create: Literal[1, True] = 1) -> bdist_rpm: ...
134
- @overload
135
- def get_command_obj(self, command: Literal["build"], create: Literal[1, True] = 1) -> build: ...
136
- @overload
137
- def get_command_obj(self, command: Literal["build_clib"], create: Literal[1, True] = 1) -> build_clib: ...
138
- @overload
139
- def get_command_obj(self, command: Literal["build_ext"], create: Literal[1, True] = 1) -> build_ext: ...
140
- @overload
141
- def get_command_obj(self, command: Literal["build_py"], create: Literal[1, True] = 1) -> build_py: ...
142
- @overload
143
- def get_command_obj(self, command: Literal["build_scripts"], create: Literal[1, True] = 1) -> build_scripts: ...
144
- @overload
145
- def get_command_obj(self, command: Literal["check"], create: Literal[1, True] = 1) -> check: ...
146
- @overload
147
- def get_command_obj(self, command: Literal["clean"], create: Literal[1, True] = 1) -> clean: ...
148
- @overload
149
- def get_command_obj(self, command: Literal["config"], create: Literal[1, True] = 1) -> config: ...
150
- @overload
151
- def get_command_obj(self, command: Literal["install"], create: Literal[1, True] = 1) -> install: ...
152
- @overload
153
- def get_command_obj(self, command: Literal["install_data"], create: Literal[1, True] = 1) -> install_data: ...
154
- @overload
155
- def get_command_obj(self, command: Literal["install_egg_info"], create: Literal[1, True] = 1) -> install_egg_info: ...
156
- @overload
157
- def get_command_obj(self, command: Literal["install_headers"], create: Literal[1, True] = 1) -> install_headers: ...
158
- @overload
159
- def get_command_obj(self, command: Literal["install_lib"], create: Literal[1, True] = 1) -> install_lib: ...
160
- @overload
161
- def get_command_obj(self, command: Literal["install_scripts"], create: Literal[1, True] = 1) -> install_scripts: ...
162
- @overload
163
- def get_command_obj(self, command: Literal["register"], create: Literal[1, True] = 1) -> register: ...
164
- @overload
165
- def get_command_obj(self, command: Literal["sdist"], create: Literal[1, True] = 1) -> sdist: ...
166
- @overload
167
- def get_command_obj(self, command: Literal["upload"], create: Literal[1, True] = 1) -> upload: ...
168
- @overload
169
- def get_command_obj(self, command: str, create: Literal[1, True] = 1) -> Command: ...
170
- # Not replicating the overloads for "Command | None", user may use "isinstance"
171
- @overload
172
- def get_command_obj(self, command: str, create: Literal[0, False]) -> Command | None: ...
173
- @overload
174
- def get_command_class(self, command: Literal["bdist"]) -> type[bdist]: ...
175
- @overload
176
- def get_command_class(self, command: Literal["bdist_dumb"]) -> type[bdist_dumb]: ...
177
- @overload
178
- def get_command_class(self, command: Literal["bdist_rpm"]) -> type[bdist_rpm]: ...
179
- @overload
180
- def get_command_class(self, command: Literal["build"]) -> type[build]: ...
181
- @overload
182
- def get_command_class(self, command: Literal["build_clib"]) -> type[build_clib]: ...
183
- @overload
184
- def get_command_class(self, command: Literal["build_ext"]) -> type[build_ext]: ...
185
- @overload
186
- def get_command_class(self, command: Literal["build_py"]) -> type[build_py]: ...
187
- @overload
188
- def get_command_class(self, command: Literal["build_scripts"]) -> type[build_scripts]: ...
189
- @overload
190
- def get_command_class(self, command: Literal["check"]) -> type[check]: ...
191
- @overload
192
- def get_command_class(self, command: Literal["clean"]) -> type[clean]: ...
193
- @overload
194
- def get_command_class(self, command: Literal["config"]) -> type[config]: ...
195
- @overload
196
- def get_command_class(self, command: Literal["install"]) -> type[install]: ...
197
- @overload
198
- def get_command_class(self, command: Literal["install_data"]) -> type[install_data]: ...
199
- @overload
200
- def get_command_class(self, command: Literal["install_egg_info"]) -> type[install_egg_info]: ...
201
- @overload
202
- def get_command_class(self, command: Literal["install_headers"]) -> type[install_headers]: ...
203
- @overload
204
- def get_command_class(self, command: Literal["install_lib"]) -> type[install_lib]: ...
205
- @overload
206
- def get_command_class(self, command: Literal["install_scripts"]) -> type[install_scripts]: ...
207
- @overload
208
- def get_command_class(self, command: Literal["register"]) -> type[register]: ...
209
- @overload
210
- def get_command_class(self, command: Literal["sdist"]) -> type[sdist]: ...
211
- @overload
212
- def get_command_class(self, command: Literal["upload"]) -> type[upload]: ...
213
- @overload
214
- def get_command_class(self, command: str) -> type[Command]: ...
215
- @overload
216
- def reinitialize_command(self, command: Literal["bdist"], reinit_subcommands: bool = False) -> bdist: ...
217
- @overload
218
- def reinitialize_command(self, command: Literal["bdist_dumb"], reinit_subcommands: bool = False) -> bdist_dumb: ...
219
- @overload
220
- def reinitialize_command(self, command: Literal["bdist_rpm"], reinit_subcommands: bool = False) -> bdist_rpm: ...
221
- @overload
222
- def reinitialize_command(self, command: Literal["build"], reinit_subcommands: bool = False) -> build: ...
223
- @overload
224
- def reinitialize_command(self, command: Literal["build_clib"], reinit_subcommands: bool = False) -> build_clib: ...
225
- @overload
226
- def reinitialize_command(self, command: Literal["build_ext"], reinit_subcommands: bool = False) -> build_ext: ...
227
- @overload
228
- def reinitialize_command(self, command: Literal["build_py"], reinit_subcommands: bool = False) -> build_py: ...
229
- @overload
230
- def reinitialize_command(self, command: Literal["build_scripts"], reinit_subcommands: bool = False) -> build_scripts: ...
231
- @overload
232
- def reinitialize_command(self, command: Literal["check"], reinit_subcommands: bool = False) -> check: ...
233
- @overload
234
- def reinitialize_command(self, command: Literal["clean"], reinit_subcommands: bool = False) -> clean: ...
235
- @overload
236
- def reinitialize_command(self, command: Literal["config"], reinit_subcommands: bool = False) -> config: ...
237
- @overload
238
- def reinitialize_command(self, command: Literal["install"], reinit_subcommands: bool = False) -> install: ...
239
- @overload
240
- def reinitialize_command(self, command: Literal["install_data"], reinit_subcommands: bool = False) -> install_data: ...
241
- @overload
242
- def reinitialize_command(
243
- self, command: Literal["install_egg_info"], reinit_subcommands: bool = False
244
- ) -> install_egg_info: ...
245
- @overload
246
- def reinitialize_command(self, command: Literal["install_headers"], reinit_subcommands: bool = False) -> install_headers: ...
247
- @overload
248
- def reinitialize_command(self, command: Literal["install_lib"], reinit_subcommands: bool = False) -> install_lib: ...
249
- @overload
250
- def reinitialize_command(self, command: Literal["install_scripts"], reinit_subcommands: bool = False) -> install_scripts: ...
251
- @overload
252
- def reinitialize_command(self, command: Literal["register"], reinit_subcommands: bool = False) -> register: ...
253
- @overload
254
- def reinitialize_command(self, command: Literal["sdist"], reinit_subcommands: bool = False) -> sdist: ...
255
- @overload
256
- def reinitialize_command(self, command: Literal["upload"], reinit_subcommands: bool = False) -> upload: ...
257
- @overload
258
- def reinitialize_command(self, command: str, reinit_subcommands: bool = False) -> Command: ...
259
- @overload
260
- def reinitialize_command(self, command: _CommandT, reinit_subcommands: bool = False) -> _CommandT: ...
261
- def announce(self, msg, level: int = 2) -> None: ...
262
- def run_commands(self) -> None: ...
263
- def run_command(self, command: str) -> None: ...
264
- def has_pure_modules(self) -> bool: ...
265
- def has_ext_modules(self) -> bool: ...
266
- def has_c_libraries(self) -> bool: ...
267
- def has_modules(self) -> bool: ...
268
- def has_headers(self) -> bool: ...
269
- def has_scripts(self) -> bool: ...
270
- def has_data_files(self) -> bool: ...
271
- def is_pure(self) -> bool: ...
272
-
273
- # Default getter methods generated in __init__ from self.metadata._METHOD_BASENAMES
274
- def get_name(self) -> str: ...
275
- def get_version(self) -> str: ...
276
- def get_fullname(self) -> str: ...
277
- def get_author(self) -> str: ...
278
- def get_author_email(self) -> str: ...
279
- def get_maintainer(self) -> str: ...
280
- def get_maintainer_email(self) -> str: ...
281
- def get_contact(self) -> str: ...
282
- def get_contact_email(self) -> str: ...
283
- def get_url(self) -> str: ...
284
- def get_license(self) -> str: ...
285
- def get_licence(self) -> str: ...
286
- def get_description(self) -> str: ...
287
- def get_long_description(self) -> str: ...
288
- def get_keywords(self) -> str | list[str]: ...
289
- def get_platforms(self) -> str | list[str]: ...
290
- def get_classifiers(self) -> str | list[str]: ...
291
- def get_download_url(self) -> str: ...
292
- def get_requires(self) -> list[str]: ...
293
- def get_provides(self) -> list[str]: ...
294
- def get_obsoletes(self) -> list[str]: ...
295
-
296
- # Default attributes generated in __init__ from self.display_option_names
297
- help_commands: bool | Literal[0]
298
- name: str | Literal[0]
299
- version: str | Literal[0]
300
- fullname: str | Literal[0]
301
- author: str | Literal[0]
302
- author_email: str | Literal[0]
303
- maintainer: str | Literal[0]
304
- maintainer_email: str | Literal[0]
305
- contact: str | Literal[0]
306
- contact_email: str | Literal[0]
307
- url: str | Literal[0]
308
- license: str | Literal[0]
309
- licence: str | Literal[0]
310
- description: str | Literal[0]
311
- long_description: str | Literal[0]
312
- platforms: str | list[str] | Literal[0]
313
- classifiers: str | list[str] | Literal[0]
314
- keywords: str | list[str] | Literal[0]
315
- provides: list[str] | Literal[0]
316
- requires: list[str] | Literal[0]
317
- obsoletes: list[str] | Literal[0]
1
+ from _typeshed import Incomplete, StrOrBytesPath, StrPath, SupportsWrite
2
+ from collections.abc import Iterable, MutableMapping
3
+ from distutils.cmd import Command
4
+ from distutils.command.bdist import bdist
5
+ from distutils.command.bdist_dumb import bdist_dumb
6
+ from distutils.command.bdist_rpm import bdist_rpm
7
+ from distutils.command.build import build
8
+ from distutils.command.build_clib import build_clib
9
+ from distutils.command.build_ext import build_ext
10
+ from distutils.command.build_py import build_py
11
+ from distutils.command.build_scripts import build_scripts
12
+ from distutils.command.check import check
13
+ from distutils.command.clean import clean
14
+ from distutils.command.config import config
15
+ from distutils.command.install import install
16
+ from distutils.command.install_data import install_data
17
+ from distutils.command.install_egg_info import install_egg_info
18
+ from distutils.command.install_headers import install_headers
19
+ from distutils.command.install_lib import install_lib
20
+ from distutils.command.install_scripts import install_scripts
21
+ from distutils.command.register import register
22
+ from distutils.command.sdist import sdist
23
+ from distutils.command.upload import upload
24
+ from re import Pattern
25
+ from typing import IO, ClassVar, Literal, TypeVar, overload
26
+ from typing_extensions import TypeAlias
27
+
28
+ command_re: Pattern[str]
29
+
30
+ _OptionsList: TypeAlias = list[tuple[str, str | None, str, int] | tuple[str, str | None, str]]
31
+ _CommandT = TypeVar("_CommandT", bound=Command)
32
+
33
+ class DistributionMetadata:
34
+ def __init__(self, path: StrOrBytesPath | None = None) -> None: ...
35
+ name: str | None
36
+ version: str | None
37
+ author: str | None
38
+ author_email: str | None
39
+ maintainer: str | None
40
+ maintainer_email: str | None
41
+ url: str | None
42
+ license: str | None
43
+ description: str | None
44
+ long_description: str | None
45
+ keywords: str | list[str] | None
46
+ platforms: str | list[str] | None
47
+ classifiers: str | list[str] | None
48
+ download_url: str | None
49
+ provides: list[str] | None
50
+ requires: list[str] | None
51
+ obsoletes: list[str] | None
52
+ def read_pkg_file(self, file: IO[str]) -> None: ...
53
+ def write_pkg_info(self, base_dir: StrPath) -> None: ...
54
+ def write_pkg_file(self, file: SupportsWrite[str]) -> None: ...
55
+ def get_name(self) -> str: ...
56
+ def get_version(self) -> str: ...
57
+ def get_fullname(self) -> str: ...
58
+ def get_author(self) -> str: ...
59
+ def get_author_email(self) -> str: ...
60
+ def get_maintainer(self) -> str: ...
61
+ def get_maintainer_email(self) -> str: ...
62
+ def get_contact(self) -> str: ...
63
+ def get_contact_email(self) -> str: ...
64
+ def get_url(self) -> str: ...
65
+ def get_license(self) -> str: ...
66
+ def get_licence(self) -> str: ...
67
+ def get_description(self) -> str: ...
68
+ def get_long_description(self) -> str: ...
69
+ def get_keywords(self) -> str | list[str]: ...
70
+ def get_platforms(self) -> str | list[str]: ...
71
+ def get_classifiers(self) -> str | list[str]: ...
72
+ def get_download_url(self) -> str: ...
73
+ def get_requires(self) -> list[str]: ...
74
+ def set_requires(self, value: Iterable[str]) -> None: ...
75
+ def get_provides(self) -> list[str]: ...
76
+ def set_provides(self, value: Iterable[str]) -> None: ...
77
+ def get_obsoletes(self) -> list[str]: ...
78
+ def set_obsoletes(self, value: Iterable[str]) -> None: ...
79
+
80
+ class Distribution:
81
+ cmdclass: dict[str, type[Command]]
82
+ metadata: DistributionMetadata
83
+ def __init__(self, attrs: MutableMapping[str, Incomplete] | None = None) -> None: ...
84
+ def get_option_dict(self, command: str) -> dict[str, tuple[str, str]]: ...
85
+ def parse_config_files(self, filenames: Iterable[str] | None = None) -> None: ...
86
+ global_options: ClassVar[_OptionsList]
87
+ common_usage: ClassVar[str]
88
+ display_options: ClassVar[_OptionsList]
89
+ display_option_names: ClassVar[list[str]]
90
+ negative_opt: ClassVar[dict[str, str]]
91
+ verbose: Literal[0, 1]
92
+ dry_run: Literal[0, 1]
93
+ help: Literal[0, 1]
94
+ command_packages: list[str] | None
95
+ script_name: str | None
96
+ script_args: list[str] | None
97
+ command_options: dict[str, dict[str, tuple[str, str]]]
98
+ dist_files: list[tuple[str, str, str]]
99
+ packages: Incomplete
100
+ package_data: dict[str, list[str]]
101
+ package_dir: Incomplete
102
+ py_modules: Incomplete
103
+ libraries: Incomplete
104
+ headers: Incomplete
105
+ ext_modules: Incomplete
106
+ ext_package: Incomplete
107
+ include_dirs: Incomplete
108
+ extra_path: Incomplete
109
+ scripts: Incomplete
110
+ data_files: Incomplete
111
+ password: str
112
+ command_obj: Incomplete
113
+ have_run: Incomplete
114
+ want_user_cfg: bool
115
+ def dump_option_dicts(
116
+ self, header: Incomplete | None = None, commands: Incomplete | None = None, indent: str = ""
117
+ ) -> None: ...
118
+ def find_config_files(self): ...
119
+ commands: Incomplete
120
+ def parse_command_line(self): ...
121
+ def finalize_options(self) -> None: ...
122
+ def handle_display_options(self, option_order): ...
123
+ def print_command_list(self, commands, header, max_length) -> None: ...
124
+ def print_commands(self) -> None: ...
125
+ def get_command_list(self): ...
126
+ def get_command_packages(self): ...
127
+ # NOTE: This list comes directly from the distutils/command folder. Minus bdist_msi and bdist_wininst.
128
+ @overload
129
+ def get_command_obj(self, command: Literal["bdist"], create: Literal[1, True] = 1) -> bdist: ...
130
+ @overload
131
+ def get_command_obj(self, command: Literal["bdist_dumb"], create: Literal[1, True] = 1) -> bdist_dumb: ...
132
+ @overload
133
+ def get_command_obj(self, command: Literal["bdist_rpm"], create: Literal[1, True] = 1) -> bdist_rpm: ...
134
+ @overload
135
+ def get_command_obj(self, command: Literal["build"], create: Literal[1, True] = 1) -> build: ...
136
+ @overload
137
+ def get_command_obj(self, command: Literal["build_clib"], create: Literal[1, True] = 1) -> build_clib: ...
138
+ @overload
139
+ def get_command_obj(self, command: Literal["build_ext"], create: Literal[1, True] = 1) -> build_ext: ...
140
+ @overload
141
+ def get_command_obj(self, command: Literal["build_py"], create: Literal[1, True] = 1) -> build_py: ...
142
+ @overload
143
+ def get_command_obj(self, command: Literal["build_scripts"], create: Literal[1, True] = 1) -> build_scripts: ...
144
+ @overload
145
+ def get_command_obj(self, command: Literal["check"], create: Literal[1, True] = 1) -> check: ...
146
+ @overload
147
+ def get_command_obj(self, command: Literal["clean"], create: Literal[1, True] = 1) -> clean: ...
148
+ @overload
149
+ def get_command_obj(self, command: Literal["config"], create: Literal[1, True] = 1) -> config: ...
150
+ @overload
151
+ def get_command_obj(self, command: Literal["install"], create: Literal[1, True] = 1) -> install: ...
152
+ @overload
153
+ def get_command_obj(self, command: Literal["install_data"], create: Literal[1, True] = 1) -> install_data: ...
154
+ @overload
155
+ def get_command_obj(self, command: Literal["install_egg_info"], create: Literal[1, True] = 1) -> install_egg_info: ...
156
+ @overload
157
+ def get_command_obj(self, command: Literal["install_headers"], create: Literal[1, True] = 1) -> install_headers: ...
158
+ @overload
159
+ def get_command_obj(self, command: Literal["install_lib"], create: Literal[1, True] = 1) -> install_lib: ...
160
+ @overload
161
+ def get_command_obj(self, command: Literal["install_scripts"], create: Literal[1, True] = 1) -> install_scripts: ...
162
+ @overload
163
+ def get_command_obj(self, command: Literal["register"], create: Literal[1, True] = 1) -> register: ...
164
+ @overload
165
+ def get_command_obj(self, command: Literal["sdist"], create: Literal[1, True] = 1) -> sdist: ...
166
+ @overload
167
+ def get_command_obj(self, command: Literal["upload"], create: Literal[1, True] = 1) -> upload: ...
168
+ @overload
169
+ def get_command_obj(self, command: str, create: Literal[1, True] = 1) -> Command: ...
170
+ # Not replicating the overloads for "Command | None", user may use "isinstance"
171
+ @overload
172
+ def get_command_obj(self, command: str, create: Literal[0, False]) -> Command | None: ...
173
+ @overload
174
+ def get_command_class(self, command: Literal["bdist"]) -> type[bdist]: ...
175
+ @overload
176
+ def get_command_class(self, command: Literal["bdist_dumb"]) -> type[bdist_dumb]: ...
177
+ @overload
178
+ def get_command_class(self, command: Literal["bdist_rpm"]) -> type[bdist_rpm]: ...
179
+ @overload
180
+ def get_command_class(self, command: Literal["build"]) -> type[build]: ...
181
+ @overload
182
+ def get_command_class(self, command: Literal["build_clib"]) -> type[build_clib]: ...
183
+ @overload
184
+ def get_command_class(self, command: Literal["build_ext"]) -> type[build_ext]: ...
185
+ @overload
186
+ def get_command_class(self, command: Literal["build_py"]) -> type[build_py]: ...
187
+ @overload
188
+ def get_command_class(self, command: Literal["build_scripts"]) -> type[build_scripts]: ...
189
+ @overload
190
+ def get_command_class(self, command: Literal["check"]) -> type[check]: ...
191
+ @overload
192
+ def get_command_class(self, command: Literal["clean"]) -> type[clean]: ...
193
+ @overload
194
+ def get_command_class(self, command: Literal["config"]) -> type[config]: ...
195
+ @overload
196
+ def get_command_class(self, command: Literal["install"]) -> type[install]: ...
197
+ @overload
198
+ def get_command_class(self, command: Literal["install_data"]) -> type[install_data]: ...
199
+ @overload
200
+ def get_command_class(self, command: Literal["install_egg_info"]) -> type[install_egg_info]: ...
201
+ @overload
202
+ def get_command_class(self, command: Literal["install_headers"]) -> type[install_headers]: ...
203
+ @overload
204
+ def get_command_class(self, command: Literal["install_lib"]) -> type[install_lib]: ...
205
+ @overload
206
+ def get_command_class(self, command: Literal["install_scripts"]) -> type[install_scripts]: ...
207
+ @overload
208
+ def get_command_class(self, command: Literal["register"]) -> type[register]: ...
209
+ @overload
210
+ def get_command_class(self, command: Literal["sdist"]) -> type[sdist]: ...
211
+ @overload
212
+ def get_command_class(self, command: Literal["upload"]) -> type[upload]: ...
213
+ @overload
214
+ def get_command_class(self, command: str) -> type[Command]: ...
215
+ @overload
216
+ def reinitialize_command(self, command: Literal["bdist"], reinit_subcommands: bool = False) -> bdist: ...
217
+ @overload
218
+ def reinitialize_command(self, command: Literal["bdist_dumb"], reinit_subcommands: bool = False) -> bdist_dumb: ...
219
+ @overload
220
+ def reinitialize_command(self, command: Literal["bdist_rpm"], reinit_subcommands: bool = False) -> bdist_rpm: ...
221
+ @overload
222
+ def reinitialize_command(self, command: Literal["build"], reinit_subcommands: bool = False) -> build: ...
223
+ @overload
224
+ def reinitialize_command(self, command: Literal["build_clib"], reinit_subcommands: bool = False) -> build_clib: ...
225
+ @overload
226
+ def reinitialize_command(self, command: Literal["build_ext"], reinit_subcommands: bool = False) -> build_ext: ...
227
+ @overload
228
+ def reinitialize_command(self, command: Literal["build_py"], reinit_subcommands: bool = False) -> build_py: ...
229
+ @overload
230
+ def reinitialize_command(self, command: Literal["build_scripts"], reinit_subcommands: bool = False) -> build_scripts: ...
231
+ @overload
232
+ def reinitialize_command(self, command: Literal["check"], reinit_subcommands: bool = False) -> check: ...
233
+ @overload
234
+ def reinitialize_command(self, command: Literal["clean"], reinit_subcommands: bool = False) -> clean: ...
235
+ @overload
236
+ def reinitialize_command(self, command: Literal["config"], reinit_subcommands: bool = False) -> config: ...
237
+ @overload
238
+ def reinitialize_command(self, command: Literal["install"], reinit_subcommands: bool = False) -> install: ...
239
+ @overload
240
+ def reinitialize_command(self, command: Literal["install_data"], reinit_subcommands: bool = False) -> install_data: ...
241
+ @overload
242
+ def reinitialize_command(
243
+ self, command: Literal["install_egg_info"], reinit_subcommands: bool = False
244
+ ) -> install_egg_info: ...
245
+ @overload
246
+ def reinitialize_command(self, command: Literal["install_headers"], reinit_subcommands: bool = False) -> install_headers: ...
247
+ @overload
248
+ def reinitialize_command(self, command: Literal["install_lib"], reinit_subcommands: bool = False) -> install_lib: ...
249
+ @overload
250
+ def reinitialize_command(self, command: Literal["install_scripts"], reinit_subcommands: bool = False) -> install_scripts: ...
251
+ @overload
252
+ def reinitialize_command(self, command: Literal["register"], reinit_subcommands: bool = False) -> register: ...
253
+ @overload
254
+ def reinitialize_command(self, command: Literal["sdist"], reinit_subcommands: bool = False) -> sdist: ...
255
+ @overload
256
+ def reinitialize_command(self, command: Literal["upload"], reinit_subcommands: bool = False) -> upload: ...
257
+ @overload
258
+ def reinitialize_command(self, command: str, reinit_subcommands: bool = False) -> Command: ...
259
+ @overload
260
+ def reinitialize_command(self, command: _CommandT, reinit_subcommands: bool = False) -> _CommandT: ...
261
+ def announce(self, msg, level: int = 2) -> None: ...
262
+ def run_commands(self) -> None: ...
263
+ def run_command(self, command: str) -> None: ...
264
+ def has_pure_modules(self) -> bool: ...
265
+ def has_ext_modules(self) -> bool: ...
266
+ def has_c_libraries(self) -> bool: ...
267
+ def has_modules(self) -> bool: ...
268
+ def has_headers(self) -> bool: ...
269
+ def has_scripts(self) -> bool: ...
270
+ def has_data_files(self) -> bool: ...
271
+ def is_pure(self) -> bool: ...
272
+
273
+ # Default getter methods generated in __init__ from self.metadata._METHOD_BASENAMES
274
+ def get_name(self) -> str: ...
275
+ def get_version(self) -> str: ...
276
+ def get_fullname(self) -> str: ...
277
+ def get_author(self) -> str: ...
278
+ def get_author_email(self) -> str: ...
279
+ def get_maintainer(self) -> str: ...
280
+ def get_maintainer_email(self) -> str: ...
281
+ def get_contact(self) -> str: ...
282
+ def get_contact_email(self) -> str: ...
283
+ def get_url(self) -> str: ...
284
+ def get_license(self) -> str: ...
285
+ def get_licence(self) -> str: ...
286
+ def get_description(self) -> str: ...
287
+ def get_long_description(self) -> str: ...
288
+ def get_keywords(self) -> str | list[str]: ...
289
+ def get_platforms(self) -> str | list[str]: ...
290
+ def get_classifiers(self) -> str | list[str]: ...
291
+ def get_download_url(self) -> str: ...
292
+ def get_requires(self) -> list[str]: ...
293
+ def get_provides(self) -> list[str]: ...
294
+ def get_obsoletes(self) -> list[str]: ...
295
+
296
+ # Default attributes generated in __init__ from self.display_option_names
297
+ help_commands: bool | Literal[0]
298
+ name: str | Literal[0]
299
+ version: str | Literal[0]
300
+ fullname: str | Literal[0]
301
+ author: str | Literal[0]
302
+ author_email: str | Literal[0]
303
+ maintainer: str | Literal[0]
304
+ maintainer_email: str | Literal[0]
305
+ contact: str | Literal[0]
306
+ contact_email: str | Literal[0]
307
+ url: str | Literal[0]
308
+ license: str | Literal[0]
309
+ licence: str | Literal[0]
310
+ description: str | Literal[0]
311
+ long_description: str | Literal[0]
312
+ platforms: str | list[str] | Literal[0]
313
+ classifiers: str | list[str] | Literal[0]
314
+ keywords: str | list[str] | Literal[0]
315
+ provides: list[str] | Literal[0]
316
+ requires: list[str] | Literal[0]
317
+ obsoletes: list[str] | Literal[0]