basedpyright 1.13.2 → 1.13.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pyright-langserver.js +1 -1
- package/dist/pyright-langserver.js.map +1 -1
- package/dist/pyright.js +1 -1
- package/dist/pyright.js.map +1 -1
- package/dist/typeshed-fallback/commit.txt +1 -1
- package/dist/typeshed-fallback/stdlib/VERSIONS +2 -0
- package/dist/typeshed-fallback/stdlib/_ast.pyi +42 -279
- package/dist/typeshed-fallback/stdlib/_bisect.pyi +221 -221
- package/dist/typeshed-fallback/stdlib/_bootlocale.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/_collections_abc.pyi +15 -5
- package/dist/typeshed-fallback/stdlib/_csv.pyi +213 -213
- package/dist/typeshed-fallback/stdlib/_decimal.pyi +0 -18
- package/dist/typeshed-fallback/stdlib/_dummy_thread.pyi +33 -33
- package/dist/typeshed-fallback/stdlib/_dummy_threading.pyi +180 -164
- package/dist/typeshed-fallback/stdlib/_heapq.pyi +67 -67
- package/dist/typeshed-fallback/stdlib/_interpqueues.pyi +16 -0
- package/dist/typeshed-fallback/stdlib/_interpreters.pyi +50 -0
- package/dist/typeshed-fallback/stdlib/_json.pyi +92 -92
- package/dist/typeshed-fallback/stdlib/_lsprof.pyi +92 -92
- package/dist/typeshed-fallback/stdlib/_msi.pyi +94 -92
- package/dist/typeshed-fallback/stdlib/_operator.pyi +0 -24
- package/dist/typeshed-fallback/stdlib/_random.pyi +30 -30
- package/dist/typeshed-fallback/stdlib/_tkinter.pyi +6 -2
- package/dist/typeshed-fallback/stdlib/_weakrefset.pyi +7 -1
- package/dist/typeshed-fallback/stdlib/abc.pyi +12 -4
- package/dist/typeshed-fallback/stdlib/argparse.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/array.pyi +281 -281
- package/dist/typeshed-fallback/stdlib/asynchat.pyi +21 -21
- package/dist/typeshed-fallback/stdlib/asyncio/events.pyi +35 -4
- package/dist/typeshed-fallback/stdlib/asyncio/futures.pyi +107 -15
- package/dist/typeshed-fallback/stdlib/asyncio/locks.pyi +9 -3
- package/dist/typeshed-fallback/stdlib/asyncio/queues.pyi +10 -2
- package/dist/typeshed-fallback/stdlib/asyncio/sslproto.pyi +23 -4
- package/dist/typeshed-fallback/stdlib/asyncio/tasks.pyi +107 -12
- package/dist/typeshed-fallback/stdlib/asyncio/windows_events.pyi +86 -86
- package/dist/typeshed-fallback/stdlib/asyncio/windows_utils.pyi +49 -49
- package/dist/typeshed-fallback/stdlib/asyncore.pyi +90 -90
- package/dist/typeshed-fallback/stdlib/audioop.pyi +95 -95
- package/dist/typeshed-fallback/stdlib/binascii.pyi +123 -123
- package/dist/typeshed-fallback/stdlib/binhex.pyi +45 -45
- package/dist/typeshed-fallback/stdlib/builtins.pyi +0 -1
- package/dist/typeshed-fallback/stdlib/bz2.pyi +59 -6
- package/dist/typeshed-fallback/stdlib/cmath.pyi +112 -112
- package/dist/typeshed-fallback/stdlib/codecs.pyi +18 -6
- package/dist/typeshed-fallback/stdlib/collections/__init__.pyi +200 -56
- package/dist/typeshed-fallback/stdlib/concurrent/futures/__init__.pyi +33 -14
- package/dist/typeshed-fallback/stdlib/concurrent/futures/_base.pyi +7 -1
- package/dist/typeshed-fallback/stdlib/concurrent/futures/thread.pyi +7 -1
- package/dist/typeshed-fallback/stdlib/contextvars.pyi +99 -16
- package/dist/typeshed-fallback/stdlib/csv.pyi +14 -2
- package/dist/typeshed-fallback/stdlib/ctypes/__init__.pyi +7 -1
- package/dist/typeshed-fallback/stdlib/ctypes/_endian.pyi +6 -2
- package/dist/typeshed-fallback/stdlib/curses/panel.pyi +16 -4
- package/dist/typeshed-fallback/stdlib/dataclasses.pyi +7 -1
- package/dist/typeshed-fallback/stdlib/datetime.pyi +346 -104
- package/dist/typeshed-fallback/stdlib/dbm/gnu.pyi +52 -2
- package/dist/typeshed-fallback/stdlib/dbm/ndbm.pyi +26 -2
- package/dist/typeshed-fallback/stdlib/difflib.pyi +7 -1
- package/dist/typeshed-fallback/stdlib/distutils/__init__.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/distutils/archive_util.pyi +35 -35
- package/dist/typeshed-fallback/stdlib/distutils/bcppcompiler.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/distutils/ccompiler.pyi +173 -173
- package/dist/typeshed-fallback/stdlib/distutils/cmd.pyi +99 -99
- package/dist/typeshed-fallback/stdlib/distutils/command/bdist.pyi +25 -25
- package/dist/typeshed-fallback/stdlib/distutils/command/bdist_dumb.pyi +21 -21
- package/dist/typeshed-fallback/stdlib/distutils/command/bdist_msi.pyi +45 -45
- package/dist/typeshed-fallback/stdlib/distutils/command/bdist_rpm.pyi +52 -52
- package/dist/typeshed-fallback/stdlib/distutils/command/bdist_wininst.pyi +16 -16
- package/dist/typeshed-fallback/stdlib/distutils/command/build.pyi +33 -33
- package/dist/typeshed-fallback/stdlib/distutils/command/build_clib.pyi +27 -27
- package/dist/typeshed-fallback/stdlib/distutils/command/build_ext.pyi +50 -50
- package/dist/typeshed-fallback/stdlib/distutils/command/build_py.pyi +44 -44
- package/dist/typeshed-fallback/stdlib/distutils/command/build_scripts.pyi +24 -24
- package/dist/typeshed-fallback/stdlib/distutils/command/check.pyi +39 -39
- package/dist/typeshed-fallback/stdlib/distutils/command/clean.pyi +17 -17
- package/dist/typeshed-fallback/stdlib/distutils/command/config.pyi +84 -84
- package/dist/typeshed-fallback/stdlib/distutils/command/install.pyi +65 -65
- package/dist/typeshed-fallback/stdlib/distutils/command/install_data.pyi +19 -19
- package/dist/typeshed-fallback/stdlib/distutils/command/install_egg_info.pyi +18 -18
- package/dist/typeshed-fallback/stdlib/distutils/command/install_headers.pyi +16 -16
- package/dist/typeshed-fallback/stdlib/distutils/command/install_lib.pyi +25 -25
- package/dist/typeshed-fallback/stdlib/distutils/command/install_scripts.pyi +18 -18
- package/dist/typeshed-fallback/stdlib/distutils/command/register.pyi +20 -20
- package/dist/typeshed-fallback/stdlib/distutils/command/sdist.pyi +44 -44
- package/dist/typeshed-fallback/stdlib/distutils/command/upload.pyi +17 -17
- package/dist/typeshed-fallback/stdlib/distutils/config.pyi +17 -17
- package/dist/typeshed-fallback/stdlib/distutils/core.pyi +57 -57
- package/dist/typeshed-fallback/stdlib/distutils/cygwinccompiler.pyi +20 -20
- package/dist/typeshed-fallback/stdlib/distutils/debug.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/distutils/dep_util.pyi +14 -14
- package/dist/typeshed-fallback/stdlib/distutils/dir_util.pyi +23 -23
- package/dist/typeshed-fallback/stdlib/distutils/dist.pyi +149 -149
- package/dist/typeshed-fallback/stdlib/distutils/errors.pyi +19 -19
- package/dist/typeshed-fallback/stdlib/distutils/extension.pyi +36 -36
- package/dist/typeshed-fallback/stdlib/distutils/fancy_getopt.pyi +34 -34
- package/dist/typeshed-fallback/stdlib/distutils/file_util.pyi +38 -38
- package/dist/typeshed-fallback/stdlib/distutils/filelist.pyi +58 -58
- package/dist/typeshed-fallback/stdlib/distutils/log.pyi +25 -25
- package/dist/typeshed-fallback/stdlib/distutils/msvccompiler.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/distutils/spawn.pyi +6 -6
- package/dist/typeshed-fallback/stdlib/distutils/sysconfig.pyi +33 -33
- package/dist/typeshed-fallback/stdlib/distutils/text_file.pyi +21 -21
- package/dist/typeshed-fallback/stdlib/distutils/unixccompiler.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/distutils/util.pyi +50 -50
- package/dist/typeshed-fallback/stdlib/distutils/version.pyi +38 -36
- package/dist/typeshed-fallback/stdlib/dummy_threading.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/email/_header_value_parser.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/email/charset.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/email/header.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/email/headerregistry.pyi +6 -1
- package/dist/typeshed-fallback/stdlib/enum.pyi +8 -1
- package/dist/typeshed-fallback/stdlib/filecmp.pyi +7 -1
- package/dist/typeshed-fallback/stdlib/fileinput.pyi +7 -1
- package/dist/typeshed-fallback/stdlib/formatter.pyi +88 -88
- package/dist/typeshed-fallback/stdlib/fractions.pyi +6 -2
- package/dist/typeshed-fallback/stdlib/functools.pyi +65 -13
- package/dist/typeshed-fallback/stdlib/graphlib.pyi +7 -1
- package/dist/typeshed-fallback/stdlib/gzip.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/hashlib.pyi +42 -14
- package/dist/typeshed-fallback/stdlib/heapq.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/hmac.pyi +30 -2
- package/dist/typeshed-fallback/stdlib/http/cookies.pyi +7 -1
- package/dist/typeshed-fallback/stdlib/imp.pyi +62 -62
- package/dist/typeshed-fallback/stdlib/importlib/abc.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/importlib/machinery.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/importlib/metadata/__init__.pyi +79 -15
- package/dist/typeshed-fallback/stdlib/importlib/metadata/_meta.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/importlib/resources/simple.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/io.pyi +428 -44
- package/dist/typeshed-fallback/stdlib/ipaddress.pyi +153 -28
- package/dist/typeshed-fallback/stdlib/itertools.pyi +5 -1
- package/dist/typeshed-fallback/stdlib/json/encoder.pyi +14 -2
- package/dist/typeshed-fallback/stdlib/keyword.pyi +6 -2
- package/dist/typeshed-fallback/stdlib/lib2to3/pytree.pyi +12 -2
- package/dist/typeshed-fallback/stdlib/logging/__init__.pyi +17 -3
- package/dist/typeshed-fallback/stdlib/lzma.pyi +107 -9
- package/dist/typeshed-fallback/stdlib/mailbox.pyi +14 -2
- package/dist/typeshed-fallback/stdlib/math.pyi +424 -424
- package/dist/typeshed-fallback/stdlib/mmap.pyi +160 -160
- package/dist/typeshed-fallback/stdlib/msilib/__init__.pyi +177 -177
- package/dist/typeshed-fallback/stdlib/msilib/schema.pyi +94 -94
- package/dist/typeshed-fallback/stdlib/msilib/sequence.pyi +13 -13
- package/dist/typeshed-fallback/stdlib/msilib/text.pyi +7 -7
- package/dist/typeshed-fallback/stdlib/multiprocessing/connection.pyi +9 -3
- package/dist/typeshed-fallback/stdlib/multiprocessing/context.pyi +12 -2
- package/dist/typeshed-fallback/stdlib/multiprocessing/dummy/__init__.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/multiprocessing/managers.pyi +10 -2
- package/dist/typeshed-fallback/stdlib/multiprocessing/pool.pyi +7 -1
- package/dist/typeshed-fallback/stdlib/multiprocessing/popen_spawn_win32.pyi +30 -30
- package/dist/typeshed-fallback/stdlib/multiprocessing/process.pyi +15 -4
- package/dist/typeshed-fallback/stdlib/multiprocessing/queues.pyi +14 -2
- package/dist/typeshed-fallback/stdlib/multiprocessing/shared_memory.pyi +19 -5
- package/dist/typeshed-fallback/stdlib/nis.pyi +31 -4
- package/dist/typeshed-fallback/stdlib/numbers.pyi +26 -6
- package/dist/typeshed-fallback/stdlib/opcode.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/optparse.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/os/__init__.pyi +1447 -217
- package/dist/typeshed-fallback/stdlib/pathlib.pyi +42 -11
- package/dist/typeshed-fallback/stdlib/pickle.pyi +200 -12
- package/dist/typeshed-fallback/stdlib/posixpath.pyi +6 -2
- package/dist/typeshed-fallback/stdlib/pyexpat/errors.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/pyexpat/model.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/queue.pyi +57 -9
- package/dist/typeshed-fallback/stdlib/re.pyi +219 -57
- package/dist/typeshed-fallback/stdlib/sched.pyi +8 -1
- package/dist/typeshed-fallback/stdlib/signal.pyi +95 -19
- package/dist/typeshed-fallback/stdlib/smtpd.pyi +91 -91
- package/dist/typeshed-fallback/stdlib/socket.pyi +12 -2
- package/dist/typeshed-fallback/stdlib/sqlite3/dbapi2.pyi +417 -83
- package/dist/typeshed-fallback/stdlib/ssl.pyi +133 -22
- package/dist/typeshed-fallback/stdlib/statistics.pyi +20 -5
- package/dist/typeshed-fallback/stdlib/struct.pyi +114 -13
- package/dist/typeshed-fallback/stdlib/subprocess.pyi +14 -2
- package/dist/typeshed-fallback/stdlib/symbol.pyi +93 -93
- package/dist/typeshed-fallback/stdlib/symtable.pyi +30 -1
- package/dist/typeshed-fallback/stdlib/sys/__init__.pyi +7 -3
- package/dist/typeshed-fallback/stdlib/tarfile.pyi +6 -2
- package/dist/typeshed-fallback/stdlib/tempfile.pyi +17 -3
- package/dist/typeshed-fallback/stdlib/threading.pyi +68 -7
- package/dist/typeshed-fallback/stdlib/tkinter/__init__.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/turtle.pyi +11 -3
- package/dist/typeshed-fallback/stdlib/types.pyi +306 -79
- package/dist/typeshed-fallback/stdlib/typing.pyi +310 -31
- package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +42 -11
- package/dist/typeshed-fallback/stdlib/unittest/__init__.pyi +6 -1
- package/dist/typeshed-fallback/stdlib/unittest/case.pyi +7 -1
- package/dist/typeshed-fallback/stdlib/unittest/mock.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/urllib/parse.pyi +51 -3
- package/dist/typeshed-fallback/stdlib/weakref.pyi +6 -2
- package/dist/typeshed-fallback/stdlib/winsound.pyi +44 -28
- package/dist/typeshed-fallback/stdlib/xml/dom/minicompat.pyi +6 -2
- package/dist/typeshed-fallback/stdlib/xml/dom/minidom.pyi +33 -11
- package/dist/typeshed-fallback/stdlib/xml/etree/ElementTree.pyi +30 -10
- package/dist/typeshed-fallback/stdlib/xml/parsers/expat/errors.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/xml/parsers/expat/model.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/xxlimited.pyi +19 -4
- package/dist/typeshed-fallback/stdlib/zipimport.pyi +31 -0
- package/dist/typeshed-fallback/stdlib/zlib.pyi +157 -157
- package/dist/typeshed-fallback/stdlib/zoneinfo/__init__.pyi +18 -6
- package/dist/typeshed-fallback/stubs/assertpy/assertpy/extracting.pyi +2 -2
- package/dist/typeshed-fallback/stubs/docker/docker/_types.pyi +18 -1
- package/dist/typeshed-fallback/stubs/docker/docker/api/container.pyi +5 -19
- package/dist/typeshed-fallback/stubs/docker/docker/api/daemon.pyi +2 -1
- package/dist/typeshed-fallback/stubs/docker/docker/models/containers.pyi +268 -6
- package/dist/typeshed-fallback/stubs/docker/docker/types/containers.pyi +3 -7
- package/dist/typeshed-fallback/stubs/docker/docker/types/daemon.pyi +10 -4
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/states.pyi +47 -0
- package/dist/typeshed-fallback/stubs/gdb/gdb/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/generic.pyi +1 -1
- package/dist/typeshed-fallback/stubs/openpyxl/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/packaging/extended.pyi +0 -2
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/styles/named_styles.pyi +2 -1
- package/dist/typeshed-fallback/stubs/pygit2/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/pytest-lazy-fixture/pytest_lazyfixture.pyi +2 -2
- package/dist/typeshed-fallback/stubs/python-crontab/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/reportlab/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/rl_safe_eval.pyi +23 -11
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfbase/pdfdoc.pyi +6 -0
- package/dist/typeshed-fallback/stubs/setuptools/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/archive_util.pyi +8 -8
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/ccompiler.pyi +11 -17
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/cmd.pyi +11 -11
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/build_py.pyi +1 -2
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/filelist.pyi +4 -12
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/sysconfig.pyi +2 -4
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/util.pyi +5 -8
- package/dist/typeshed-fallback/stubs/str2bool/METADATA.toml +2 -0
- package/dist/typeshed-fallback/stubs/str2bool/str2bool/__init__.pyi +7 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
# Attempts to improve these stubs are probably not the best use of time:
|
|
2
|
-
# - distutils is deleted in Python 3.12 and newer
|
|
3
|
-
# - Most users already do not use stdlib distutils, due to setuptools monkeypatching
|
|
4
|
-
# - We have very little quality assurance on these stubs, since due to the two above issues
|
|
5
|
-
# we allowlist all distutils errors in stubtest.
|
|
1
|
+
# Attempts to improve these stubs are probably not the best use of time:
|
|
2
|
+
# - distutils is deleted in Python 3.12 and newer
|
|
3
|
+
# - Most users already do not use stdlib distutils, due to setuptools monkeypatching
|
|
4
|
+
# - We have very little quality assurance on these stubs, since due to the two above issues
|
|
5
|
+
# we allowlist all distutils errors in stubtest.
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
from _typeshed import StrOrBytesPath, StrPath
|
|
2
|
-
from typing import Literal, overload
|
|
3
|
-
|
|
4
|
-
@overload
|
|
5
|
-
def make_archive(
|
|
6
|
-
base_name: str,
|
|
7
|
-
format: str,
|
|
8
|
-
root_dir: StrOrBytesPath | None = None,
|
|
9
|
-
base_dir: str | None = None,
|
|
10
|
-
verbose: bool | Literal[0, 1] = 0,
|
|
11
|
-
dry_run: bool | Literal[0, 1] = 0,
|
|
12
|
-
owner: str | None = None,
|
|
13
|
-
group: str | None = None,
|
|
14
|
-
) -> str: ...
|
|
15
|
-
@overload
|
|
16
|
-
def make_archive(
|
|
17
|
-
base_name: StrPath,
|
|
18
|
-
format: str,
|
|
19
|
-
root_dir: StrOrBytesPath,
|
|
20
|
-
base_dir: str | None = None,
|
|
21
|
-
verbose: bool | Literal[0, 1] = 0,
|
|
22
|
-
dry_run: bool | Literal[0, 1] = 0,
|
|
23
|
-
owner: str | None = None,
|
|
24
|
-
group: str | None = None,
|
|
25
|
-
) -> str: ...
|
|
26
|
-
def make_tarball(
|
|
27
|
-
base_name: str,
|
|
28
|
-
base_dir: StrPath,
|
|
29
|
-
compress: str | None = "gzip",
|
|
30
|
-
verbose: bool | Literal[0, 1] = 0,
|
|
31
|
-
dry_run: bool | Literal[0, 1] = 0,
|
|
32
|
-
owner: str | None = None,
|
|
33
|
-
group: str | None = None,
|
|
34
|
-
) -> str: ...
|
|
35
|
-
def make_zipfile(base_name: str, base_dir: str, verbose: bool | Literal[0, 1] = 0, dry_run: bool | Literal[0, 1] = 0) -> str: ...
|
|
1
|
+
from _typeshed import StrOrBytesPath, StrPath
|
|
2
|
+
from typing import Literal, overload
|
|
3
|
+
|
|
4
|
+
@overload
|
|
5
|
+
def make_archive(
|
|
6
|
+
base_name: str,
|
|
7
|
+
format: str,
|
|
8
|
+
root_dir: StrOrBytesPath | None = None,
|
|
9
|
+
base_dir: str | None = None,
|
|
10
|
+
verbose: bool | Literal[0, 1] = 0,
|
|
11
|
+
dry_run: bool | Literal[0, 1] = 0,
|
|
12
|
+
owner: str | None = None,
|
|
13
|
+
group: str | None = None,
|
|
14
|
+
) -> str: ...
|
|
15
|
+
@overload
|
|
16
|
+
def make_archive(
|
|
17
|
+
base_name: StrPath,
|
|
18
|
+
format: str,
|
|
19
|
+
root_dir: StrOrBytesPath,
|
|
20
|
+
base_dir: str | None = None,
|
|
21
|
+
verbose: bool | Literal[0, 1] = 0,
|
|
22
|
+
dry_run: bool | Literal[0, 1] = 0,
|
|
23
|
+
owner: str | None = None,
|
|
24
|
+
group: str | None = None,
|
|
25
|
+
) -> str: ...
|
|
26
|
+
def make_tarball(
|
|
27
|
+
base_name: str,
|
|
28
|
+
base_dir: StrPath,
|
|
29
|
+
compress: str | None = "gzip",
|
|
30
|
+
verbose: bool | Literal[0, 1] = 0,
|
|
31
|
+
dry_run: bool | Literal[0, 1] = 0,
|
|
32
|
+
owner: str | None = None,
|
|
33
|
+
group: str | None = None,
|
|
34
|
+
) -> str: ...
|
|
35
|
+
def make_zipfile(base_name: str, base_dir: str, verbose: bool | Literal[0, 1] = 0, dry_run: bool | Literal[0, 1] = 0) -> str: ...
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
from distutils.ccompiler import CCompiler
|
|
2
|
-
|
|
3
|
-
class BCPPCompiler(CCompiler): ...
|
|
1
|
+
from distutils.ccompiler import CCompiler
|
|
2
|
+
|
|
3
|
+
class BCPPCompiler(CCompiler): ...
|
|
@@ -1,173 +1,173 @@
|
|
|
1
|
-
from _typeshed import BytesPath, StrPath
|
|
2
|
-
from collections.abc import Callable, Iterable
|
|
3
|
-
from distutils.file_util import _BytesPathT, _StrPathT
|
|
4
|
-
from typing import Any, Literal, overload
|
|
5
|
-
from typing_extensions import TypeAlias
|
|
6
|
-
|
|
7
|
-
_Macro: TypeAlias = tuple[str] | tuple[str, str | None]
|
|
8
|
-
|
|
9
|
-
def gen_lib_options(
|
|
10
|
-
compiler: CCompiler, library_dirs: list[str], runtime_library_dirs: list[str], libraries: list[str]
|
|
11
|
-
) -> list[str]: ...
|
|
12
|
-
def gen_preprocess_options(macros: list[_Macro], include_dirs: list[str]) -> list[str]: ...
|
|
13
|
-
def get_default_compiler(osname: str | None = None, platform: str | None = None) -> str: ...
|
|
14
|
-
def new_compiler(
|
|
15
|
-
plat: str | None = None,
|
|
16
|
-
compiler: str | None = None,
|
|
17
|
-
verbose: bool | Literal[0, 1] = 0,
|
|
18
|
-
dry_run: bool | Literal[0, 1] = 0,
|
|
19
|
-
force: bool | Literal[0, 1] = 0,
|
|
20
|
-
) -> CCompiler: ...
|
|
21
|
-
def show_compilers() -> None: ...
|
|
22
|
-
|
|
23
|
-
class CCompiler:
|
|
24
|
-
dry_run: bool
|
|
25
|
-
force: bool
|
|
26
|
-
verbose: bool
|
|
27
|
-
output_dir: str | None
|
|
28
|
-
macros: list[_Macro]
|
|
29
|
-
include_dirs: list[str]
|
|
30
|
-
libraries: list[str]
|
|
31
|
-
library_dirs: list[str]
|
|
32
|
-
runtime_library_dirs: list[str]
|
|
33
|
-
objects: list[str]
|
|
34
|
-
def __init__(
|
|
35
|
-
self, verbose: bool | Literal[0, 1] = 0, dry_run: bool | Literal[0, 1] = 0, force: bool | Literal[0, 1] = 0
|
|
36
|
-
) -> None: ...
|
|
37
|
-
def add_include_dir(self, dir: str) -> None: ...
|
|
38
|
-
def set_include_dirs(self, dirs: list[str]) -> None: ...
|
|
39
|
-
def add_library(self, libname: str) -> None: ...
|
|
40
|
-
def set_libraries(self, libnames: list[str]) -> None: ...
|
|
41
|
-
def add_library_dir(self, dir: str) -> None: ...
|
|
42
|
-
def set_library_dirs(self, dirs: list[str]) -> None: ...
|
|
43
|
-
def add_runtime_library_dir(self, dir: str) -> None: ...
|
|
44
|
-
def set_runtime_library_dirs(self, dirs: list[str]) -> None: ...
|
|
45
|
-
def define_macro(self, name: str, value: str | None = None) -> None: ...
|
|
46
|
-
def undefine_macro(self, name: str) -> None: ...
|
|
47
|
-
def add_link_object(self, object: str) -> None: ...
|
|
48
|
-
def set_link_objects(self, objects: list[str]) -> None: ...
|
|
49
|
-
def detect_language(self, sources: str | list[str]) -> str | None: ...
|
|
50
|
-
def find_library_file(self, dirs: list[str], lib: str, debug: bool | Literal[0, 1] = 0) -> str | None: ...
|
|
51
|
-
def has_function(
|
|
52
|
-
self,
|
|
53
|
-
funcname: str,
|
|
54
|
-
includes: list[str] | None = None,
|
|
55
|
-
include_dirs: list[str] | None = None,
|
|
56
|
-
libraries: list[str] | None = None,
|
|
57
|
-
library_dirs: list[str] | None = None,
|
|
58
|
-
) -> bool: ...
|
|
59
|
-
def library_dir_option(self, dir: str) -> str: ...
|
|
60
|
-
def library_option(self, lib: str) -> str: ...
|
|
61
|
-
def runtime_library_dir_option(self, dir: str) -> str: ...
|
|
62
|
-
def set_executables(self, **args: str) -> None: ...
|
|
63
|
-
def compile(
|
|
64
|
-
self,
|
|
65
|
-
sources: list[str],
|
|
66
|
-
output_dir: str | None = None,
|
|
67
|
-
macros: list[_Macro] | None = None,
|
|
68
|
-
include_dirs: list[str] | None = None,
|
|
69
|
-
debug: bool | Literal[0, 1] = 0,
|
|
70
|
-
extra_preargs: list[str] | None = None,
|
|
71
|
-
extra_postargs: list[str] | None = None,
|
|
72
|
-
depends: list[str] | None = None,
|
|
73
|
-
) -> list[str]: ...
|
|
74
|
-
def create_static_lib(
|
|
75
|
-
self,
|
|
76
|
-
objects: list[str],
|
|
77
|
-
output_libname: str,
|
|
78
|
-
output_dir: str | None = None,
|
|
79
|
-
debug: bool | Literal[0, 1] = 0,
|
|
80
|
-
target_lang: str | None = None,
|
|
81
|
-
) -> None: ...
|
|
82
|
-
def link(
|
|
83
|
-
self,
|
|
84
|
-
target_desc: str,
|
|
85
|
-
objects: list[str],
|
|
86
|
-
output_filename: str,
|
|
87
|
-
output_dir: str | None = None,
|
|
88
|
-
libraries: list[str] | None = None,
|
|
89
|
-
library_dirs: list[str] | None = None,
|
|
90
|
-
runtime_library_dirs: list[str] | None = None,
|
|
91
|
-
export_symbols: list[str] | None = None,
|
|
92
|
-
debug: bool | Literal[0, 1] = 0,
|
|
93
|
-
extra_preargs: list[str] | None = None,
|
|
94
|
-
extra_postargs: list[str] | None = None,
|
|
95
|
-
build_temp: str | None = None,
|
|
96
|
-
target_lang: str | None = None,
|
|
97
|
-
) -> None: ...
|
|
98
|
-
def link_executable(
|
|
99
|
-
self,
|
|
100
|
-
objects: list[str],
|
|
101
|
-
output_progname: str,
|
|
102
|
-
output_dir: str | None = None,
|
|
103
|
-
libraries: list[str] | None = None,
|
|
104
|
-
library_dirs: list[str] | None = None,
|
|
105
|
-
runtime_library_dirs: list[str] | None = None,
|
|
106
|
-
debug: bool | Literal[0, 1] = 0,
|
|
107
|
-
extra_preargs: list[str] | None = None,
|
|
108
|
-
extra_postargs: list[str] | None = None,
|
|
109
|
-
target_lang: str | None = None,
|
|
110
|
-
) -> None: ...
|
|
111
|
-
def link_shared_lib(
|
|
112
|
-
self,
|
|
113
|
-
objects: list[str],
|
|
114
|
-
output_libname: str,
|
|
115
|
-
output_dir: str | None = None,
|
|
116
|
-
libraries: list[str] | None = None,
|
|
117
|
-
library_dirs: list[str] | None = None,
|
|
118
|
-
runtime_library_dirs: list[str] | None = None,
|
|
119
|
-
export_symbols: list[str] | None = None,
|
|
120
|
-
debug: bool | Literal[0, 1] = 0,
|
|
121
|
-
extra_preargs: list[str] | None = None,
|
|
122
|
-
extra_postargs: list[str] | None = None,
|
|
123
|
-
build_temp: str | None = None,
|
|
124
|
-
target_lang: str | None = None,
|
|
125
|
-
) -> None: ...
|
|
126
|
-
def link_shared_object(
|
|
127
|
-
self,
|
|
128
|
-
objects: list[str],
|
|
129
|
-
output_filename: str,
|
|
130
|
-
output_dir: str | None = None,
|
|
131
|
-
libraries: list[str] | None = None,
|
|
132
|
-
library_dirs: list[str] | None = None,
|
|
133
|
-
runtime_library_dirs: list[str] | None = None,
|
|
134
|
-
export_symbols: list[str] | None = None,
|
|
135
|
-
debug: bool | Literal[0, 1] = 0,
|
|
136
|
-
extra_preargs: list[str] | None = None,
|
|
137
|
-
extra_postargs: list[str] | None = None,
|
|
138
|
-
build_temp: str | None = None,
|
|
139
|
-
target_lang: str | None = None,
|
|
140
|
-
) -> None: ...
|
|
141
|
-
def preprocess(
|
|
142
|
-
self,
|
|
143
|
-
source: str,
|
|
144
|
-
output_file: str | None = None,
|
|
145
|
-
macros: list[_Macro] | None = None,
|
|
146
|
-
include_dirs: list[str] | None = None,
|
|
147
|
-
extra_preargs: list[str] | None = None,
|
|
148
|
-
extra_postargs: list[str] | None = None,
|
|
149
|
-
) -> None: ...
|
|
150
|
-
@overload
|
|
151
|
-
def executable_filename(self, basename: str, strip_dir: Literal[0, False] = 0, output_dir: StrPath = "") -> str: ...
|
|
152
|
-
@overload
|
|
153
|
-
def executable_filename(self, basename: StrPath, strip_dir: Literal[1, True], output_dir: StrPath = "") -> str: ...
|
|
154
|
-
def library_filename(
|
|
155
|
-
self, libname: str, lib_type: str = "static", strip_dir: bool | Literal[0, 1] = 0, output_dir: StrPath = ""
|
|
156
|
-
) -> str: ...
|
|
157
|
-
def object_filenames(
|
|
158
|
-
self, source_filenames: Iterable[StrPath], strip_dir: bool | Literal[0, 1] = 0, output_dir: StrPath | None = ""
|
|
159
|
-
) -> list[str]: ...
|
|
160
|
-
@overload
|
|
161
|
-
def shared_object_filename(self, basename: str, strip_dir: Literal[0, False] = 0, output_dir: StrPath = "") -> str: ...
|
|
162
|
-
@overload
|
|
163
|
-
def shared_object_filename(self, basename: StrPath, strip_dir: Literal[1, True], output_dir: StrPath = "") -> str: ...
|
|
164
|
-
def execute(self, func: Callable[..., object], args: tuple[Any, ...], msg: str | None = None, level: int = 1) -> None: ...
|
|
165
|
-
def spawn(self, cmd: list[str]) -> None: ...
|
|
166
|
-
def mkpath(self, name: str, mode: int = 0o777) -> None: ...
|
|
167
|
-
@overload
|
|
168
|
-
def move_file(self, src: StrPath, dst: _StrPathT) -> _StrPathT | str: ...
|
|
169
|
-
@overload
|
|
170
|
-
def move_file(self, src: BytesPath, dst: _BytesPathT) -> _BytesPathT | bytes: ...
|
|
171
|
-
def announce(self, msg: str, level: int = 1) -> None: ...
|
|
172
|
-
def warn(self, msg: str) -> None: ...
|
|
173
|
-
def debug_print(self, msg: str) -> None: ...
|
|
1
|
+
from _typeshed import BytesPath, StrPath
|
|
2
|
+
from collections.abc import Callable, Iterable
|
|
3
|
+
from distutils.file_util import _BytesPathT, _StrPathT
|
|
4
|
+
from typing import Any, Literal, overload
|
|
5
|
+
from typing_extensions import TypeAlias
|
|
6
|
+
|
|
7
|
+
_Macro: TypeAlias = tuple[str] | tuple[str, str | None]
|
|
8
|
+
|
|
9
|
+
def gen_lib_options(
|
|
10
|
+
compiler: CCompiler, library_dirs: list[str], runtime_library_dirs: list[str], libraries: list[str]
|
|
11
|
+
) -> list[str]: ...
|
|
12
|
+
def gen_preprocess_options(macros: list[_Macro], include_dirs: list[str]) -> list[str]: ...
|
|
13
|
+
def get_default_compiler(osname: str | None = None, platform: str | None = None) -> str: ...
|
|
14
|
+
def new_compiler(
|
|
15
|
+
plat: str | None = None,
|
|
16
|
+
compiler: str | None = None,
|
|
17
|
+
verbose: bool | Literal[0, 1] = 0,
|
|
18
|
+
dry_run: bool | Literal[0, 1] = 0,
|
|
19
|
+
force: bool | Literal[0, 1] = 0,
|
|
20
|
+
) -> CCompiler: ...
|
|
21
|
+
def show_compilers() -> None: ...
|
|
22
|
+
|
|
23
|
+
class CCompiler:
|
|
24
|
+
dry_run: bool
|
|
25
|
+
force: bool
|
|
26
|
+
verbose: bool
|
|
27
|
+
output_dir: str | None
|
|
28
|
+
macros: list[_Macro]
|
|
29
|
+
include_dirs: list[str]
|
|
30
|
+
libraries: list[str]
|
|
31
|
+
library_dirs: list[str]
|
|
32
|
+
runtime_library_dirs: list[str]
|
|
33
|
+
objects: list[str]
|
|
34
|
+
def __init__(
|
|
35
|
+
self, verbose: bool | Literal[0, 1] = 0, dry_run: bool | Literal[0, 1] = 0, force: bool | Literal[0, 1] = 0
|
|
36
|
+
) -> None: ...
|
|
37
|
+
def add_include_dir(self, dir: str) -> None: ...
|
|
38
|
+
def set_include_dirs(self, dirs: list[str]) -> None: ...
|
|
39
|
+
def add_library(self, libname: str) -> None: ...
|
|
40
|
+
def set_libraries(self, libnames: list[str]) -> None: ...
|
|
41
|
+
def add_library_dir(self, dir: str) -> None: ...
|
|
42
|
+
def set_library_dirs(self, dirs: list[str]) -> None: ...
|
|
43
|
+
def add_runtime_library_dir(self, dir: str) -> None: ...
|
|
44
|
+
def set_runtime_library_dirs(self, dirs: list[str]) -> None: ...
|
|
45
|
+
def define_macro(self, name: str, value: str | None = None) -> None: ...
|
|
46
|
+
def undefine_macro(self, name: str) -> None: ...
|
|
47
|
+
def add_link_object(self, object: str) -> None: ...
|
|
48
|
+
def set_link_objects(self, objects: list[str]) -> None: ...
|
|
49
|
+
def detect_language(self, sources: str | list[str]) -> str | None: ...
|
|
50
|
+
def find_library_file(self, dirs: list[str], lib: str, debug: bool | Literal[0, 1] = 0) -> str | None: ...
|
|
51
|
+
def has_function(
|
|
52
|
+
self,
|
|
53
|
+
funcname: str,
|
|
54
|
+
includes: list[str] | None = None,
|
|
55
|
+
include_dirs: list[str] | None = None,
|
|
56
|
+
libraries: list[str] | None = None,
|
|
57
|
+
library_dirs: list[str] | None = None,
|
|
58
|
+
) -> bool: ...
|
|
59
|
+
def library_dir_option(self, dir: str) -> str: ...
|
|
60
|
+
def library_option(self, lib: str) -> str: ...
|
|
61
|
+
def runtime_library_dir_option(self, dir: str) -> str: ...
|
|
62
|
+
def set_executables(self, **args: str) -> None: ...
|
|
63
|
+
def compile(
|
|
64
|
+
self,
|
|
65
|
+
sources: list[str],
|
|
66
|
+
output_dir: str | None = None,
|
|
67
|
+
macros: list[_Macro] | None = None,
|
|
68
|
+
include_dirs: list[str] | None = None,
|
|
69
|
+
debug: bool | Literal[0, 1] = 0,
|
|
70
|
+
extra_preargs: list[str] | None = None,
|
|
71
|
+
extra_postargs: list[str] | None = None,
|
|
72
|
+
depends: list[str] | None = None,
|
|
73
|
+
) -> list[str]: ...
|
|
74
|
+
def create_static_lib(
|
|
75
|
+
self,
|
|
76
|
+
objects: list[str],
|
|
77
|
+
output_libname: str,
|
|
78
|
+
output_dir: str | None = None,
|
|
79
|
+
debug: bool | Literal[0, 1] = 0,
|
|
80
|
+
target_lang: str | None = None,
|
|
81
|
+
) -> None: ...
|
|
82
|
+
def link(
|
|
83
|
+
self,
|
|
84
|
+
target_desc: str,
|
|
85
|
+
objects: list[str],
|
|
86
|
+
output_filename: str,
|
|
87
|
+
output_dir: str | None = None,
|
|
88
|
+
libraries: list[str] | None = None,
|
|
89
|
+
library_dirs: list[str] | None = None,
|
|
90
|
+
runtime_library_dirs: list[str] | None = None,
|
|
91
|
+
export_symbols: list[str] | None = None,
|
|
92
|
+
debug: bool | Literal[0, 1] = 0,
|
|
93
|
+
extra_preargs: list[str] | None = None,
|
|
94
|
+
extra_postargs: list[str] | None = None,
|
|
95
|
+
build_temp: str | None = None,
|
|
96
|
+
target_lang: str | None = None,
|
|
97
|
+
) -> None: ...
|
|
98
|
+
def link_executable(
|
|
99
|
+
self,
|
|
100
|
+
objects: list[str],
|
|
101
|
+
output_progname: str,
|
|
102
|
+
output_dir: str | None = None,
|
|
103
|
+
libraries: list[str] | None = None,
|
|
104
|
+
library_dirs: list[str] | None = None,
|
|
105
|
+
runtime_library_dirs: list[str] | None = None,
|
|
106
|
+
debug: bool | Literal[0, 1] = 0,
|
|
107
|
+
extra_preargs: list[str] | None = None,
|
|
108
|
+
extra_postargs: list[str] | None = None,
|
|
109
|
+
target_lang: str | None = None,
|
|
110
|
+
) -> None: ...
|
|
111
|
+
def link_shared_lib(
|
|
112
|
+
self,
|
|
113
|
+
objects: list[str],
|
|
114
|
+
output_libname: str,
|
|
115
|
+
output_dir: str | None = None,
|
|
116
|
+
libraries: list[str] | None = None,
|
|
117
|
+
library_dirs: list[str] | None = None,
|
|
118
|
+
runtime_library_dirs: list[str] | None = None,
|
|
119
|
+
export_symbols: list[str] | None = None,
|
|
120
|
+
debug: bool | Literal[0, 1] = 0,
|
|
121
|
+
extra_preargs: list[str] | None = None,
|
|
122
|
+
extra_postargs: list[str] | None = None,
|
|
123
|
+
build_temp: str | None = None,
|
|
124
|
+
target_lang: str | None = None,
|
|
125
|
+
) -> None: ...
|
|
126
|
+
def link_shared_object(
|
|
127
|
+
self,
|
|
128
|
+
objects: list[str],
|
|
129
|
+
output_filename: str,
|
|
130
|
+
output_dir: str | None = None,
|
|
131
|
+
libraries: list[str] | None = None,
|
|
132
|
+
library_dirs: list[str] | None = None,
|
|
133
|
+
runtime_library_dirs: list[str] | None = None,
|
|
134
|
+
export_symbols: list[str] | None = None,
|
|
135
|
+
debug: bool | Literal[0, 1] = 0,
|
|
136
|
+
extra_preargs: list[str] | None = None,
|
|
137
|
+
extra_postargs: list[str] | None = None,
|
|
138
|
+
build_temp: str | None = None,
|
|
139
|
+
target_lang: str | None = None,
|
|
140
|
+
) -> None: ...
|
|
141
|
+
def preprocess(
|
|
142
|
+
self,
|
|
143
|
+
source: str,
|
|
144
|
+
output_file: str | None = None,
|
|
145
|
+
macros: list[_Macro] | None = None,
|
|
146
|
+
include_dirs: list[str] | None = None,
|
|
147
|
+
extra_preargs: list[str] | None = None,
|
|
148
|
+
extra_postargs: list[str] | None = None,
|
|
149
|
+
) -> None: ...
|
|
150
|
+
@overload
|
|
151
|
+
def executable_filename(self, basename: str, strip_dir: Literal[0, False] = 0, output_dir: StrPath = "") -> str: ...
|
|
152
|
+
@overload
|
|
153
|
+
def executable_filename(self, basename: StrPath, strip_dir: Literal[1, True], output_dir: StrPath = "") -> str: ...
|
|
154
|
+
def library_filename(
|
|
155
|
+
self, libname: str, lib_type: str = "static", strip_dir: bool | Literal[0, 1] = 0, output_dir: StrPath = ""
|
|
156
|
+
) -> str: ...
|
|
157
|
+
def object_filenames(
|
|
158
|
+
self, source_filenames: Iterable[StrPath], strip_dir: bool | Literal[0, 1] = 0, output_dir: StrPath | None = ""
|
|
159
|
+
) -> list[str]: ...
|
|
160
|
+
@overload
|
|
161
|
+
def shared_object_filename(self, basename: str, strip_dir: Literal[0, False] = 0, output_dir: StrPath = "") -> str: ...
|
|
162
|
+
@overload
|
|
163
|
+
def shared_object_filename(self, basename: StrPath, strip_dir: Literal[1, True], output_dir: StrPath = "") -> str: ...
|
|
164
|
+
def execute(self, func: Callable[..., object], args: tuple[Any, ...], msg: str | None = None, level: int = 1) -> None: ...
|
|
165
|
+
def spawn(self, cmd: list[str]) -> None: ...
|
|
166
|
+
def mkpath(self, name: str, mode: int = 0o777) -> None: ...
|
|
167
|
+
@overload
|
|
168
|
+
def move_file(self, src: StrPath, dst: _StrPathT) -> _StrPathT | str: ...
|
|
169
|
+
@overload
|
|
170
|
+
def move_file(self, src: BytesPath, dst: _BytesPathT) -> _BytesPathT | bytes: ...
|
|
171
|
+
def announce(self, msg: str, level: int = 1) -> None: ...
|
|
172
|
+
def warn(self, msg: str) -> None: ...
|
|
173
|
+
def debug_print(self, msg: str) -> None: ...
|
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
from _typeshed import BytesPath, Incomplete, StrOrBytesPath, StrPath, Unused
|
|
2
|
-
from abc import abstractmethod
|
|
3
|
-
from collections.abc import Callable, Iterable
|
|
4
|
-
from distutils.dist import Distribution
|
|
5
|
-
from distutils.file_util import _BytesPathT, _StrPathT
|
|
6
|
-
from typing import Any, ClassVar, Literal, overload
|
|
7
|
-
|
|
8
|
-
class Command:
|
|
9
|
-
distribution: Distribution
|
|
10
|
-
# Any to work around variance issues
|
|
11
|
-
sub_commands: ClassVar[list[tuple[str, Callable[[Any], bool] | None]]]
|
|
12
|
-
def __init__(self, dist: Distribution) -> None: ...
|
|
13
|
-
@abstractmethod
|
|
14
|
-
def initialize_options(self) -> None: ...
|
|
15
|
-
@abstractmethod
|
|
16
|
-
def finalize_options(self) -> None: ...
|
|
17
|
-
@abstractmethod
|
|
18
|
-
def run(self) -> None: ...
|
|
19
|
-
def announce(self, msg: str, level: int = 1) -> None: ...
|
|
20
|
-
def debug_print(self, msg: str) -> None: ...
|
|
21
|
-
def ensure_string(self, option: str, default: str | None = None) -> None: ...
|
|
22
|
-
def ensure_string_list(self, option: str | list[str]) -> None: ...
|
|
23
|
-
def ensure_filename(self, option: str) -> None: ...
|
|
24
|
-
def ensure_dirname(self, option: str) -> None: ...
|
|
25
|
-
def get_command_name(self) -> str: ...
|
|
26
|
-
def set_undefined_options(self, src_cmd: str, *option_pairs: tuple[str, str]) -> None: ...
|
|
27
|
-
def get_finalized_command(self, command: str, create: bool | Literal[0, 1] = 1) -> Command: ...
|
|
28
|
-
def reinitialize_command(self, command: Command | str, reinit_subcommands: bool | Literal[0, 1] = 0) -> Command: ...
|
|
29
|
-
def run_command(self, command: str) -> None: ...
|
|
30
|
-
def get_sub_commands(self) -> list[str]: ...
|
|
31
|
-
def warn(self, msg: str) -> None: ...
|
|
32
|
-
def execute(self, func: Callable[..., object], args: Iterable[Any], msg: str | None = None, level: int = 1) -> None: ...
|
|
33
|
-
def mkpath(self, name: str, mode: int = 0o777) -> None: ...
|
|
34
|
-
@overload
|
|
35
|
-
def copy_file(
|
|
36
|
-
self,
|
|
37
|
-
infile: StrPath,
|
|
38
|
-
outfile: _StrPathT,
|
|
39
|
-
preserve_mode: bool | Literal[0, 1] = 1,
|
|
40
|
-
preserve_times: bool | Literal[0, 1] = 1,
|
|
41
|
-
link: str | None = None,
|
|
42
|
-
level: Unused = 1,
|
|
43
|
-
) -> tuple[_StrPathT | str, bool]: ...
|
|
44
|
-
@overload
|
|
45
|
-
def copy_file(
|
|
46
|
-
self,
|
|
47
|
-
infile: BytesPath,
|
|
48
|
-
outfile: _BytesPathT,
|
|
49
|
-
preserve_mode: bool | Literal[0, 1] = 1,
|
|
50
|
-
preserve_times: bool | Literal[0, 1] = 1,
|
|
51
|
-
link: str | None = None,
|
|
52
|
-
level: Unused = 1,
|
|
53
|
-
) -> tuple[_BytesPathT | bytes, bool]: ...
|
|
54
|
-
def copy_tree(
|
|
55
|
-
self,
|
|
56
|
-
infile: StrPath,
|
|
57
|
-
outfile: str,
|
|
58
|
-
preserve_mode: bool | Literal[0, 1] = 1,
|
|
59
|
-
preserve_times: bool | Literal[0, 1] = 1,
|
|
60
|
-
preserve_symlinks: bool | Literal[0, 1] = 0,
|
|
61
|
-
level: Unused = 1,
|
|
62
|
-
) -> list[str]: ...
|
|
63
|
-
@overload
|
|
64
|
-
def move_file(self, src: StrPath, dst: _StrPathT, level: Unused = 1) -> _StrPathT | str: ...
|
|
65
|
-
@overload
|
|
66
|
-
def move_file(self, src: BytesPath, dst: _BytesPathT, level: Unused = 1) -> _BytesPathT | bytes: ...
|
|
67
|
-
def spawn(self, cmd: Iterable[str], search_path: bool | Literal[0, 1] = 1, level: Unused = 1) -> None: ...
|
|
68
|
-
@overload
|
|
69
|
-
def make_archive(
|
|
70
|
-
self,
|
|
71
|
-
base_name: str,
|
|
72
|
-
format: str,
|
|
73
|
-
root_dir: StrOrBytesPath | None = None,
|
|
74
|
-
base_dir: str | None = None,
|
|
75
|
-
owner: str | None = None,
|
|
76
|
-
group: str | None = None,
|
|
77
|
-
) -> str: ...
|
|
78
|
-
@overload
|
|
79
|
-
def make_archive(
|
|
80
|
-
self,
|
|
81
|
-
base_name: StrPath,
|
|
82
|
-
format: str,
|
|
83
|
-
root_dir: StrOrBytesPath,
|
|
84
|
-
base_dir: str | None = None,
|
|
85
|
-
owner: str | None = None,
|
|
86
|
-
group: str | None = None,
|
|
87
|
-
) -> str: ...
|
|
88
|
-
def make_file(
|
|
89
|
-
self,
|
|
90
|
-
infiles: str | list[str] | tuple[str, ...],
|
|
91
|
-
outfile: StrOrBytesPath,
|
|
92
|
-
func: Callable[..., object],
|
|
93
|
-
args: list[Any],
|
|
94
|
-
exec_msg: str | None = None,
|
|
95
|
-
skip_msg: str | None = None,
|
|
96
|
-
level: Unused = 1,
|
|
97
|
-
) -> None: ...
|
|
98
|
-
def ensure_finalized(self) -> None: ...
|
|
99
|
-
def dump_options(self, header: Incomplete | None = None, indent: str = "") -> None: ...
|
|
1
|
+
from _typeshed import BytesPath, Incomplete, StrOrBytesPath, StrPath, Unused
|
|
2
|
+
from abc import abstractmethod
|
|
3
|
+
from collections.abc import Callable, Iterable
|
|
4
|
+
from distutils.dist import Distribution
|
|
5
|
+
from distutils.file_util import _BytesPathT, _StrPathT
|
|
6
|
+
from typing import Any, ClassVar, Literal, overload
|
|
7
|
+
|
|
8
|
+
class Command:
|
|
9
|
+
distribution: Distribution
|
|
10
|
+
# Any to work around variance issues
|
|
11
|
+
sub_commands: ClassVar[list[tuple[str, Callable[[Any], bool] | None]]]
|
|
12
|
+
def __init__(self, dist: Distribution) -> None: ...
|
|
13
|
+
@abstractmethod
|
|
14
|
+
def initialize_options(self) -> None: ...
|
|
15
|
+
@abstractmethod
|
|
16
|
+
def finalize_options(self) -> None: ...
|
|
17
|
+
@abstractmethod
|
|
18
|
+
def run(self) -> None: ...
|
|
19
|
+
def announce(self, msg: str, level: int = 1) -> None: ...
|
|
20
|
+
def debug_print(self, msg: str) -> None: ...
|
|
21
|
+
def ensure_string(self, option: str, default: str | None = None) -> None: ...
|
|
22
|
+
def ensure_string_list(self, option: str | list[str]) -> None: ...
|
|
23
|
+
def ensure_filename(self, option: str) -> None: ...
|
|
24
|
+
def ensure_dirname(self, option: str) -> None: ...
|
|
25
|
+
def get_command_name(self) -> str: ...
|
|
26
|
+
def set_undefined_options(self, src_cmd: str, *option_pairs: tuple[str, str]) -> None: ...
|
|
27
|
+
def get_finalized_command(self, command: str, create: bool | Literal[0, 1] = 1) -> Command: ...
|
|
28
|
+
def reinitialize_command(self, command: Command | str, reinit_subcommands: bool | Literal[0, 1] = 0) -> Command: ...
|
|
29
|
+
def run_command(self, command: str) -> None: ...
|
|
30
|
+
def get_sub_commands(self) -> list[str]: ...
|
|
31
|
+
def warn(self, msg: str) -> None: ...
|
|
32
|
+
def execute(self, func: Callable[..., object], args: Iterable[Any], msg: str | None = None, level: int = 1) -> None: ...
|
|
33
|
+
def mkpath(self, name: str, mode: int = 0o777) -> None: ...
|
|
34
|
+
@overload
|
|
35
|
+
def copy_file(
|
|
36
|
+
self,
|
|
37
|
+
infile: StrPath,
|
|
38
|
+
outfile: _StrPathT,
|
|
39
|
+
preserve_mode: bool | Literal[0, 1] = 1,
|
|
40
|
+
preserve_times: bool | Literal[0, 1] = 1,
|
|
41
|
+
link: str | None = None,
|
|
42
|
+
level: Unused = 1,
|
|
43
|
+
) -> tuple[_StrPathT | str, bool]: ...
|
|
44
|
+
@overload
|
|
45
|
+
def copy_file(
|
|
46
|
+
self,
|
|
47
|
+
infile: BytesPath,
|
|
48
|
+
outfile: _BytesPathT,
|
|
49
|
+
preserve_mode: bool | Literal[0, 1] = 1,
|
|
50
|
+
preserve_times: bool | Literal[0, 1] = 1,
|
|
51
|
+
link: str | None = None,
|
|
52
|
+
level: Unused = 1,
|
|
53
|
+
) -> tuple[_BytesPathT | bytes, bool]: ...
|
|
54
|
+
def copy_tree(
|
|
55
|
+
self,
|
|
56
|
+
infile: StrPath,
|
|
57
|
+
outfile: str,
|
|
58
|
+
preserve_mode: bool | Literal[0, 1] = 1,
|
|
59
|
+
preserve_times: bool | Literal[0, 1] = 1,
|
|
60
|
+
preserve_symlinks: bool | Literal[0, 1] = 0,
|
|
61
|
+
level: Unused = 1,
|
|
62
|
+
) -> list[str]: ...
|
|
63
|
+
@overload
|
|
64
|
+
def move_file(self, src: StrPath, dst: _StrPathT, level: Unused = 1) -> _StrPathT | str: ...
|
|
65
|
+
@overload
|
|
66
|
+
def move_file(self, src: BytesPath, dst: _BytesPathT, level: Unused = 1) -> _BytesPathT | bytes: ...
|
|
67
|
+
def spawn(self, cmd: Iterable[str], search_path: bool | Literal[0, 1] = 1, level: Unused = 1) -> None: ...
|
|
68
|
+
@overload
|
|
69
|
+
def make_archive(
|
|
70
|
+
self,
|
|
71
|
+
base_name: str,
|
|
72
|
+
format: str,
|
|
73
|
+
root_dir: StrOrBytesPath | None = None,
|
|
74
|
+
base_dir: str | None = None,
|
|
75
|
+
owner: str | None = None,
|
|
76
|
+
group: str | None = None,
|
|
77
|
+
) -> str: ...
|
|
78
|
+
@overload
|
|
79
|
+
def make_archive(
|
|
80
|
+
self,
|
|
81
|
+
base_name: StrPath,
|
|
82
|
+
format: str,
|
|
83
|
+
root_dir: StrOrBytesPath,
|
|
84
|
+
base_dir: str | None = None,
|
|
85
|
+
owner: str | None = None,
|
|
86
|
+
group: str | None = None,
|
|
87
|
+
) -> str: ...
|
|
88
|
+
def make_file(
|
|
89
|
+
self,
|
|
90
|
+
infiles: str | list[str] | tuple[str, ...],
|
|
91
|
+
outfile: StrOrBytesPath,
|
|
92
|
+
func: Callable[..., object],
|
|
93
|
+
args: list[Any],
|
|
94
|
+
exec_msg: str | None = None,
|
|
95
|
+
skip_msg: str | None = None,
|
|
96
|
+
level: Unused = 1,
|
|
97
|
+
) -> None: ...
|
|
98
|
+
def ensure_finalized(self) -> None: ...
|
|
99
|
+
def dump_options(self, header: Incomplete | None = None, indent: str = "") -> None: ...
|