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,149 +1,149 @@
|
|
|
1
|
-
from _typeshed import Incomplete, StrOrBytesPath, StrPath, SupportsWrite
|
|
2
|
-
from collections.abc import Iterable, Mapping
|
|
3
|
-
from distutils.cmd import Command
|
|
4
|
-
from re import Pattern
|
|
5
|
-
from typing import IO, Any, ClassVar, Literal, TypeVar, overload
|
|
6
|
-
from typing_extensions import TypeAlias
|
|
7
|
-
|
|
8
|
-
command_re: Pattern[str]
|
|
9
|
-
|
|
10
|
-
_OptionsList: TypeAlias = list[tuple[str, str | None, str, int] | tuple[str, str | None, str]]
|
|
11
|
-
_CommandT = TypeVar("_CommandT", bound=Command)
|
|
12
|
-
|
|
13
|
-
class DistributionMetadata:
|
|
14
|
-
def __init__(self, path: StrOrBytesPath | None = None) -> None: ...
|
|
15
|
-
name: str | None
|
|
16
|
-
version: str | None
|
|
17
|
-
author: str | None
|
|
18
|
-
author_email: str | None
|
|
19
|
-
maintainer: str | None
|
|
20
|
-
maintainer_email: str | None
|
|
21
|
-
url: str | None
|
|
22
|
-
license: str | None
|
|
23
|
-
description: str | None
|
|
24
|
-
long_description: str | None
|
|
25
|
-
keywords: str | list[str] | None
|
|
26
|
-
platforms: str | list[str] | None
|
|
27
|
-
classifiers: str | list[str] | None
|
|
28
|
-
download_url: str | None
|
|
29
|
-
provides: list[str] | None
|
|
30
|
-
requires: list[str] | None
|
|
31
|
-
obsoletes: list[str] | None
|
|
32
|
-
def read_pkg_file(self, file: IO[str]) -> None: ...
|
|
33
|
-
def write_pkg_info(self, base_dir: StrPath) -> None: ...
|
|
34
|
-
def write_pkg_file(self, file: SupportsWrite[str]) -> None: ...
|
|
35
|
-
def get_name(self) -> str: ...
|
|
36
|
-
def get_version(self) -> str: ...
|
|
37
|
-
def get_fullname(self) -> str: ...
|
|
38
|
-
def get_author(self) -> str: ...
|
|
39
|
-
def get_author_email(self) -> str: ...
|
|
40
|
-
def get_maintainer(self) -> str: ...
|
|
41
|
-
def get_maintainer_email(self) -> str: ...
|
|
42
|
-
def get_contact(self) -> str: ...
|
|
43
|
-
def get_contact_email(self) -> str: ...
|
|
44
|
-
def get_url(self) -> str: ...
|
|
45
|
-
def get_license(self) -> str: ...
|
|
46
|
-
def get_licence(self) -> str: ...
|
|
47
|
-
def get_description(self) -> str: ...
|
|
48
|
-
def get_long_description(self) -> str: ...
|
|
49
|
-
def get_keywords(self) -> str | list[str]: ...
|
|
50
|
-
def get_platforms(self) -> str | list[str]: ...
|
|
51
|
-
def get_classifiers(self) -> str | list[str]: ...
|
|
52
|
-
def get_download_url(self) -> str: ...
|
|
53
|
-
def get_requires(self) -> list[str]: ...
|
|
54
|
-
def set_requires(self, value: Iterable[str]) -> None: ...
|
|
55
|
-
def get_provides(self) -> list[str]: ...
|
|
56
|
-
def set_provides(self, value: Iterable[str]) -> None: ...
|
|
57
|
-
def get_obsoletes(self) -> list[str]: ...
|
|
58
|
-
def set_obsoletes(self, value: Iterable[str]) -> None: ...
|
|
59
|
-
|
|
60
|
-
class Distribution:
|
|
61
|
-
cmdclass: dict[str, type[Command]]
|
|
62
|
-
metadata: DistributionMetadata
|
|
63
|
-
def __init__(self, attrs: Mapping[str, Any] | None = None) -> None: ...
|
|
64
|
-
def get_option_dict(self, command: str) -> dict[str, tuple[str, str]]: ...
|
|
65
|
-
def parse_config_files(self, filenames: Iterable[str] | None = None) -> None: ...
|
|
66
|
-
@overload
|
|
67
|
-
def get_command_obj(self, command: str, create: Literal[1, True] = 1) -> Command: ...
|
|
68
|
-
@overload
|
|
69
|
-
def get_command_obj(self, command: str, create: Literal[0, False]) -> Command | None: ...
|
|
70
|
-
global_options: ClassVar[_OptionsList]
|
|
71
|
-
common_usage: ClassVar[str]
|
|
72
|
-
display_options: ClassVar[_OptionsList]
|
|
73
|
-
display_option_names: ClassVar[list[str]]
|
|
74
|
-
negative_opt: ClassVar[dict[str, str]]
|
|
75
|
-
verbose: int
|
|
76
|
-
dry_run: int
|
|
77
|
-
help: int
|
|
78
|
-
command_packages: list[str] | None
|
|
79
|
-
script_name: str | None
|
|
80
|
-
script_args: list[str] | None
|
|
81
|
-
command_options: dict[str, dict[str, tuple[str, str]]]
|
|
82
|
-
dist_files: list[tuple[str, str, str]]
|
|
83
|
-
packages: Incomplete
|
|
84
|
-
package_data: dict[str, list[str]]
|
|
85
|
-
package_dir: Incomplete
|
|
86
|
-
py_modules: Incomplete
|
|
87
|
-
libraries: Incomplete
|
|
88
|
-
headers: Incomplete
|
|
89
|
-
ext_modules: Incomplete
|
|
90
|
-
ext_package: Incomplete
|
|
91
|
-
include_dirs: Incomplete
|
|
92
|
-
extra_path: Incomplete
|
|
93
|
-
scripts: Incomplete
|
|
94
|
-
data_files: Incomplete
|
|
95
|
-
password: str
|
|
96
|
-
command_obj: Incomplete
|
|
97
|
-
have_run: Incomplete
|
|
98
|
-
want_user_cfg: bool
|
|
99
|
-
def dump_option_dicts(
|
|
100
|
-
self, header: Incomplete | None = None, commands: Incomplete | None = None, indent: str = ""
|
|
101
|
-
) -> None: ...
|
|
102
|
-
def find_config_files(self): ...
|
|
103
|
-
commands: Incomplete
|
|
104
|
-
def parse_command_line(self): ...
|
|
105
|
-
def finalize_options(self) -> None: ...
|
|
106
|
-
def handle_display_options(self, option_order): ...
|
|
107
|
-
def print_command_list(self, commands, header, max_length) -> None: ...
|
|
108
|
-
def print_commands(self) -> None: ...
|
|
109
|
-
def get_command_list(self): ...
|
|
110
|
-
def get_command_packages(self): ...
|
|
111
|
-
def get_command_class(self, command: str) -> type[Command]: ...
|
|
112
|
-
@overload
|
|
113
|
-
def reinitialize_command(self, command: str, reinit_subcommands: bool = False) -> Command: ...
|
|
114
|
-
@overload
|
|
115
|
-
def reinitialize_command(self, command: _CommandT, reinit_subcommands: bool = False) -> _CommandT: ...
|
|
116
|
-
def announce(self, msg, level: int = 2) -> None: ...
|
|
117
|
-
def run_commands(self) -> None: ...
|
|
118
|
-
def run_command(self, command: str) -> None: ...
|
|
119
|
-
def has_pure_modules(self) -> bool: ...
|
|
120
|
-
def has_ext_modules(self) -> bool: ...
|
|
121
|
-
def has_c_libraries(self) -> bool: ...
|
|
122
|
-
def has_modules(self) -> bool: ...
|
|
123
|
-
def has_headers(self) -> bool: ...
|
|
124
|
-
def has_scripts(self) -> bool: ...
|
|
125
|
-
def has_data_files(self) -> bool: ...
|
|
126
|
-
def is_pure(self) -> bool: ...
|
|
127
|
-
|
|
128
|
-
# Getter methods generated in __init__
|
|
129
|
-
def get_name(self) -> str: ...
|
|
130
|
-
def get_version(self) -> str: ...
|
|
131
|
-
def get_fullname(self) -> str: ...
|
|
132
|
-
def get_author(self) -> str: ...
|
|
133
|
-
def get_author_email(self) -> str: ...
|
|
134
|
-
def get_maintainer(self) -> str: ...
|
|
135
|
-
def get_maintainer_email(self) -> str: ...
|
|
136
|
-
def get_contact(self) -> str: ...
|
|
137
|
-
def get_contact_email(self) -> str: ...
|
|
138
|
-
def get_url(self) -> str: ...
|
|
139
|
-
def get_license(self) -> str: ...
|
|
140
|
-
def get_licence(self) -> str: ...
|
|
141
|
-
def get_description(self) -> str: ...
|
|
142
|
-
def get_long_description(self) -> str: ...
|
|
143
|
-
def get_keywords(self) -> str | list[str]: ...
|
|
144
|
-
def get_platforms(self) -> str | list[str]: ...
|
|
145
|
-
def get_classifiers(self) -> str | list[str]: ...
|
|
146
|
-
def get_download_url(self) -> str: ...
|
|
147
|
-
def get_requires(self) -> list[str]: ...
|
|
148
|
-
def get_provides(self) -> list[str]: ...
|
|
149
|
-
def get_obsoletes(self) -> list[str]: ...
|
|
1
|
+
from _typeshed import Incomplete, StrOrBytesPath, StrPath, SupportsWrite
|
|
2
|
+
from collections.abc import Iterable, Mapping
|
|
3
|
+
from distutils.cmd import Command
|
|
4
|
+
from re import Pattern
|
|
5
|
+
from typing import IO, Any, ClassVar, Literal, TypeVar, overload
|
|
6
|
+
from typing_extensions import TypeAlias
|
|
7
|
+
|
|
8
|
+
command_re: Pattern[str]
|
|
9
|
+
|
|
10
|
+
_OptionsList: TypeAlias = list[tuple[str, str | None, str, int] | tuple[str, str | None, str]]
|
|
11
|
+
_CommandT = TypeVar("_CommandT", bound=Command)
|
|
12
|
+
|
|
13
|
+
class DistributionMetadata:
|
|
14
|
+
def __init__(self, path: StrOrBytesPath | None = None) -> None: ...
|
|
15
|
+
name: str | None
|
|
16
|
+
version: str | None
|
|
17
|
+
author: str | None
|
|
18
|
+
author_email: str | None
|
|
19
|
+
maintainer: str | None
|
|
20
|
+
maintainer_email: str | None
|
|
21
|
+
url: str | None
|
|
22
|
+
license: str | None
|
|
23
|
+
description: str | None
|
|
24
|
+
long_description: str | None
|
|
25
|
+
keywords: str | list[str] | None
|
|
26
|
+
platforms: str | list[str] | None
|
|
27
|
+
classifiers: str | list[str] | None
|
|
28
|
+
download_url: str | None
|
|
29
|
+
provides: list[str] | None
|
|
30
|
+
requires: list[str] | None
|
|
31
|
+
obsoletes: list[str] | None
|
|
32
|
+
def read_pkg_file(self, file: IO[str]) -> None: ...
|
|
33
|
+
def write_pkg_info(self, base_dir: StrPath) -> None: ...
|
|
34
|
+
def write_pkg_file(self, file: SupportsWrite[str]) -> None: ...
|
|
35
|
+
def get_name(self) -> str: ...
|
|
36
|
+
def get_version(self) -> str: ...
|
|
37
|
+
def get_fullname(self) -> str: ...
|
|
38
|
+
def get_author(self) -> str: ...
|
|
39
|
+
def get_author_email(self) -> str: ...
|
|
40
|
+
def get_maintainer(self) -> str: ...
|
|
41
|
+
def get_maintainer_email(self) -> str: ...
|
|
42
|
+
def get_contact(self) -> str: ...
|
|
43
|
+
def get_contact_email(self) -> str: ...
|
|
44
|
+
def get_url(self) -> str: ...
|
|
45
|
+
def get_license(self) -> str: ...
|
|
46
|
+
def get_licence(self) -> str: ...
|
|
47
|
+
def get_description(self) -> str: ...
|
|
48
|
+
def get_long_description(self) -> str: ...
|
|
49
|
+
def get_keywords(self) -> str | list[str]: ...
|
|
50
|
+
def get_platforms(self) -> str | list[str]: ...
|
|
51
|
+
def get_classifiers(self) -> str | list[str]: ...
|
|
52
|
+
def get_download_url(self) -> str: ...
|
|
53
|
+
def get_requires(self) -> list[str]: ...
|
|
54
|
+
def set_requires(self, value: Iterable[str]) -> None: ...
|
|
55
|
+
def get_provides(self) -> list[str]: ...
|
|
56
|
+
def set_provides(self, value: Iterable[str]) -> None: ...
|
|
57
|
+
def get_obsoletes(self) -> list[str]: ...
|
|
58
|
+
def set_obsoletes(self, value: Iterable[str]) -> None: ...
|
|
59
|
+
|
|
60
|
+
class Distribution:
|
|
61
|
+
cmdclass: dict[str, type[Command]]
|
|
62
|
+
metadata: DistributionMetadata
|
|
63
|
+
def __init__(self, attrs: Mapping[str, Any] | None = None) -> None: ...
|
|
64
|
+
def get_option_dict(self, command: str) -> dict[str, tuple[str, str]]: ...
|
|
65
|
+
def parse_config_files(self, filenames: Iterable[str] | None = None) -> None: ...
|
|
66
|
+
@overload
|
|
67
|
+
def get_command_obj(self, command: str, create: Literal[1, True] = 1) -> Command: ...
|
|
68
|
+
@overload
|
|
69
|
+
def get_command_obj(self, command: str, create: Literal[0, False]) -> Command | None: ...
|
|
70
|
+
global_options: ClassVar[_OptionsList]
|
|
71
|
+
common_usage: ClassVar[str]
|
|
72
|
+
display_options: ClassVar[_OptionsList]
|
|
73
|
+
display_option_names: ClassVar[list[str]]
|
|
74
|
+
negative_opt: ClassVar[dict[str, str]]
|
|
75
|
+
verbose: int
|
|
76
|
+
dry_run: int
|
|
77
|
+
help: int
|
|
78
|
+
command_packages: list[str] | None
|
|
79
|
+
script_name: str | None
|
|
80
|
+
script_args: list[str] | None
|
|
81
|
+
command_options: dict[str, dict[str, tuple[str, str]]]
|
|
82
|
+
dist_files: list[tuple[str, str, str]]
|
|
83
|
+
packages: Incomplete
|
|
84
|
+
package_data: dict[str, list[str]]
|
|
85
|
+
package_dir: Incomplete
|
|
86
|
+
py_modules: Incomplete
|
|
87
|
+
libraries: Incomplete
|
|
88
|
+
headers: Incomplete
|
|
89
|
+
ext_modules: Incomplete
|
|
90
|
+
ext_package: Incomplete
|
|
91
|
+
include_dirs: Incomplete
|
|
92
|
+
extra_path: Incomplete
|
|
93
|
+
scripts: Incomplete
|
|
94
|
+
data_files: Incomplete
|
|
95
|
+
password: str
|
|
96
|
+
command_obj: Incomplete
|
|
97
|
+
have_run: Incomplete
|
|
98
|
+
want_user_cfg: bool
|
|
99
|
+
def dump_option_dicts(
|
|
100
|
+
self, header: Incomplete | None = None, commands: Incomplete | None = None, indent: str = ""
|
|
101
|
+
) -> None: ...
|
|
102
|
+
def find_config_files(self): ...
|
|
103
|
+
commands: Incomplete
|
|
104
|
+
def parse_command_line(self): ...
|
|
105
|
+
def finalize_options(self) -> None: ...
|
|
106
|
+
def handle_display_options(self, option_order): ...
|
|
107
|
+
def print_command_list(self, commands, header, max_length) -> None: ...
|
|
108
|
+
def print_commands(self) -> None: ...
|
|
109
|
+
def get_command_list(self): ...
|
|
110
|
+
def get_command_packages(self): ...
|
|
111
|
+
def get_command_class(self, command: str) -> type[Command]: ...
|
|
112
|
+
@overload
|
|
113
|
+
def reinitialize_command(self, command: str, reinit_subcommands: bool = False) -> Command: ...
|
|
114
|
+
@overload
|
|
115
|
+
def reinitialize_command(self, command: _CommandT, reinit_subcommands: bool = False) -> _CommandT: ...
|
|
116
|
+
def announce(self, msg, level: int = 2) -> None: ...
|
|
117
|
+
def run_commands(self) -> None: ...
|
|
118
|
+
def run_command(self, command: str) -> None: ...
|
|
119
|
+
def has_pure_modules(self) -> bool: ...
|
|
120
|
+
def has_ext_modules(self) -> bool: ...
|
|
121
|
+
def has_c_libraries(self) -> bool: ...
|
|
122
|
+
def has_modules(self) -> bool: ...
|
|
123
|
+
def has_headers(self) -> bool: ...
|
|
124
|
+
def has_scripts(self) -> bool: ...
|
|
125
|
+
def has_data_files(self) -> bool: ...
|
|
126
|
+
def is_pure(self) -> bool: ...
|
|
127
|
+
|
|
128
|
+
# Getter methods generated in __init__
|
|
129
|
+
def get_name(self) -> str: ...
|
|
130
|
+
def get_version(self) -> str: ...
|
|
131
|
+
def get_fullname(self) -> str: ...
|
|
132
|
+
def get_author(self) -> str: ...
|
|
133
|
+
def get_author_email(self) -> str: ...
|
|
134
|
+
def get_maintainer(self) -> str: ...
|
|
135
|
+
def get_maintainer_email(self) -> str: ...
|
|
136
|
+
def get_contact(self) -> str: ...
|
|
137
|
+
def get_contact_email(self) -> str: ...
|
|
138
|
+
def get_url(self) -> str: ...
|
|
139
|
+
def get_license(self) -> str: ...
|
|
140
|
+
def get_licence(self) -> str: ...
|
|
141
|
+
def get_description(self) -> str: ...
|
|
142
|
+
def get_long_description(self) -> str: ...
|
|
143
|
+
def get_keywords(self) -> str | list[str]: ...
|
|
144
|
+
def get_platforms(self) -> str | list[str]: ...
|
|
145
|
+
def get_classifiers(self) -> str | list[str]: ...
|
|
146
|
+
def get_download_url(self) -> str: ...
|
|
147
|
+
def get_requires(self) -> list[str]: ...
|
|
148
|
+
def get_provides(self) -> list[str]: ...
|
|
149
|
+
def get_obsoletes(self) -> list[str]: ...
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
class DistutilsError(Exception): ...
|
|
2
|
-
class DistutilsModuleError(DistutilsError): ...
|
|
3
|
-
class DistutilsClassError(DistutilsError): ...
|
|
4
|
-
class DistutilsGetoptError(DistutilsError): ...
|
|
5
|
-
class DistutilsArgError(DistutilsError): ...
|
|
6
|
-
class DistutilsFileError(DistutilsError): ...
|
|
7
|
-
class DistutilsOptionError(DistutilsError): ...
|
|
8
|
-
class DistutilsSetupError(DistutilsError): ...
|
|
9
|
-
class DistutilsPlatformError(DistutilsError): ...
|
|
10
|
-
class DistutilsExecError(DistutilsError): ...
|
|
11
|
-
class DistutilsInternalError(DistutilsError): ...
|
|
12
|
-
class DistutilsTemplateError(DistutilsError): ...
|
|
13
|
-
class DistutilsByteCompileError(DistutilsError): ...
|
|
14
|
-
class CCompilerError(Exception): ...
|
|
15
|
-
class PreprocessError(CCompilerError): ...
|
|
16
|
-
class CompileError(CCompilerError): ...
|
|
17
|
-
class LibError(CCompilerError): ...
|
|
18
|
-
class LinkError(CCompilerError): ...
|
|
19
|
-
class UnknownFileError(CCompilerError): ...
|
|
1
|
+
class DistutilsError(Exception): ...
|
|
2
|
+
class DistutilsModuleError(DistutilsError): ...
|
|
3
|
+
class DistutilsClassError(DistutilsError): ...
|
|
4
|
+
class DistutilsGetoptError(DistutilsError): ...
|
|
5
|
+
class DistutilsArgError(DistutilsError): ...
|
|
6
|
+
class DistutilsFileError(DistutilsError): ...
|
|
7
|
+
class DistutilsOptionError(DistutilsError): ...
|
|
8
|
+
class DistutilsSetupError(DistutilsError): ...
|
|
9
|
+
class DistutilsPlatformError(DistutilsError): ...
|
|
10
|
+
class DistutilsExecError(DistutilsError): ...
|
|
11
|
+
class DistutilsInternalError(DistutilsError): ...
|
|
12
|
+
class DistutilsTemplateError(DistutilsError): ...
|
|
13
|
+
class DistutilsByteCompileError(DistutilsError): ...
|
|
14
|
+
class CCompilerError(Exception): ...
|
|
15
|
+
class PreprocessError(CCompilerError): ...
|
|
16
|
+
class CompileError(CCompilerError): ...
|
|
17
|
+
class LibError(CCompilerError): ...
|
|
18
|
+
class LinkError(CCompilerError): ...
|
|
19
|
+
class UnknownFileError(CCompilerError): ...
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
class Extension:
|
|
2
|
-
name: str
|
|
3
|
-
sources: list[str]
|
|
4
|
-
include_dirs: list[str]
|
|
5
|
-
define_macros: list[tuple[str, str | None]]
|
|
6
|
-
undef_macros: list[str]
|
|
7
|
-
library_dirs: list[str]
|
|
8
|
-
libraries: list[str]
|
|
9
|
-
runtime_library_dirs: list[str]
|
|
10
|
-
extra_objects: list[str]
|
|
11
|
-
extra_compile_args: list[str]
|
|
12
|
-
extra_link_args: list[str]
|
|
13
|
-
export_symbols: list[str]
|
|
14
|
-
swig_opts: list[str]
|
|
15
|
-
depends: list[str]
|
|
16
|
-
language: str | None
|
|
17
|
-
optional: bool | None
|
|
18
|
-
def __init__(
|
|
19
|
-
self,
|
|
20
|
-
name: str,
|
|
21
|
-
sources: list[str],
|
|
22
|
-
include_dirs: list[str] | None = None,
|
|
23
|
-
define_macros: list[tuple[str, str | None]] | None = None,
|
|
24
|
-
undef_macros: list[str] | None = None,
|
|
25
|
-
library_dirs: list[str] | None = None,
|
|
26
|
-
libraries: list[str] | None = None,
|
|
27
|
-
runtime_library_dirs: list[str] | None = None,
|
|
28
|
-
extra_objects: list[str] | None = None,
|
|
29
|
-
extra_compile_args: list[str] | None = None,
|
|
30
|
-
extra_link_args: list[str] | None = None,
|
|
31
|
-
export_symbols: list[str] | None = None,
|
|
32
|
-
swig_opts: list[str] | None = None,
|
|
33
|
-
depends: list[str] | None = None,
|
|
34
|
-
language: str | None = None,
|
|
35
|
-
optional: bool | None = None,
|
|
36
|
-
) -> None: ...
|
|
1
|
+
class Extension:
|
|
2
|
+
name: str
|
|
3
|
+
sources: list[str]
|
|
4
|
+
include_dirs: list[str]
|
|
5
|
+
define_macros: list[tuple[str, str | None]]
|
|
6
|
+
undef_macros: list[str]
|
|
7
|
+
library_dirs: list[str]
|
|
8
|
+
libraries: list[str]
|
|
9
|
+
runtime_library_dirs: list[str]
|
|
10
|
+
extra_objects: list[str]
|
|
11
|
+
extra_compile_args: list[str]
|
|
12
|
+
extra_link_args: list[str]
|
|
13
|
+
export_symbols: list[str]
|
|
14
|
+
swig_opts: list[str]
|
|
15
|
+
depends: list[str]
|
|
16
|
+
language: str | None
|
|
17
|
+
optional: bool | None
|
|
18
|
+
def __init__(
|
|
19
|
+
self,
|
|
20
|
+
name: str,
|
|
21
|
+
sources: list[str],
|
|
22
|
+
include_dirs: list[str] | None = None,
|
|
23
|
+
define_macros: list[tuple[str, str | None]] | None = None,
|
|
24
|
+
undef_macros: list[str] | None = None,
|
|
25
|
+
library_dirs: list[str] | None = None,
|
|
26
|
+
libraries: list[str] | None = None,
|
|
27
|
+
runtime_library_dirs: list[str] | None = None,
|
|
28
|
+
extra_objects: list[str] | None = None,
|
|
29
|
+
extra_compile_args: list[str] | None = None,
|
|
30
|
+
extra_link_args: list[str] | None = None,
|
|
31
|
+
export_symbols: list[str] | None = None,
|
|
32
|
+
swig_opts: list[str] | None = None,
|
|
33
|
+
depends: list[str] | None = None,
|
|
34
|
+
language: str | None = None,
|
|
35
|
+
optional: bool | None = None,
|
|
36
|
+
) -> None: ...
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
from collections.abc import Iterable, Mapping
|
|
2
|
-
from re import Pattern
|
|
3
|
-
from typing import Any, overload
|
|
4
|
-
from typing_extensions import TypeAlias
|
|
5
|
-
|
|
6
|
-
_Option: TypeAlias = tuple[str, str | None, str]
|
|
7
|
-
_GR: TypeAlias = tuple[list[str], OptionDummy]
|
|
8
|
-
|
|
9
|
-
longopt_pat: str
|
|
10
|
-
longopt_re: Pattern[str]
|
|
11
|
-
neg_alias_re: Pattern[str]
|
|
12
|
-
longopt_xlate: dict[int, int]
|
|
13
|
-
|
|
14
|
-
class FancyGetopt:
|
|
15
|
-
def __init__(self, option_table: list[_Option] | None = None) -> None: ...
|
|
16
|
-
# TODO kinda wrong, `getopt(object=object())` is invalid
|
|
17
|
-
@overload
|
|
18
|
-
def getopt(self, args: list[str] | None = None) -> _GR: ...
|
|
19
|
-
@overload
|
|
20
|
-
def getopt(self, args: list[str] | None, object: Any) -> list[str]: ...
|
|
21
|
-
def get_option_order(self) -> list[tuple[str, str]]: ...
|
|
22
|
-
def generate_help(self, header: str | None = None) -> list[str]: ...
|
|
23
|
-
|
|
24
|
-
def fancy_getopt(
|
|
25
|
-
options: list[_Option], negative_opt: Mapping[_Option, _Option], object: Any, args: list[str] | None
|
|
26
|
-
) -> list[str] | _GR: ...
|
|
27
|
-
|
|
28
|
-
WS_TRANS: dict[int, str]
|
|
29
|
-
|
|
30
|
-
def wrap_text(text: str, width: int) -> list[str]: ...
|
|
31
|
-
def translate_longopt(opt: str) -> str: ...
|
|
32
|
-
|
|
33
|
-
class OptionDummy:
|
|
34
|
-
def __init__(self, options: Iterable[str] = []) -> None: ...
|
|
1
|
+
from collections.abc import Iterable, Mapping
|
|
2
|
+
from re import Pattern
|
|
3
|
+
from typing import Any, overload
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
5
|
+
|
|
6
|
+
_Option: TypeAlias = tuple[str, str | None, str]
|
|
7
|
+
_GR: TypeAlias = tuple[list[str], OptionDummy]
|
|
8
|
+
|
|
9
|
+
longopt_pat: str
|
|
10
|
+
longopt_re: Pattern[str]
|
|
11
|
+
neg_alias_re: Pattern[str]
|
|
12
|
+
longopt_xlate: dict[int, int]
|
|
13
|
+
|
|
14
|
+
class FancyGetopt:
|
|
15
|
+
def __init__(self, option_table: list[_Option] | None = None) -> None: ...
|
|
16
|
+
# TODO kinda wrong, `getopt(object=object())` is invalid
|
|
17
|
+
@overload
|
|
18
|
+
def getopt(self, args: list[str] | None = None) -> _GR: ...
|
|
19
|
+
@overload
|
|
20
|
+
def getopt(self, args: list[str] | None, object: Any) -> list[str]: ...
|
|
21
|
+
def get_option_order(self) -> list[tuple[str, str]]: ...
|
|
22
|
+
def generate_help(self, header: str | None = None) -> list[str]: ...
|
|
23
|
+
|
|
24
|
+
def fancy_getopt(
|
|
25
|
+
options: list[_Option], negative_opt: Mapping[_Option, _Option], object: Any, args: list[str] | None
|
|
26
|
+
) -> list[str] | _GR: ...
|
|
27
|
+
|
|
28
|
+
WS_TRANS: dict[int, str]
|
|
29
|
+
|
|
30
|
+
def wrap_text(text: str, width: int) -> list[str]: ...
|
|
31
|
+
def translate_longopt(opt: str) -> str: ...
|
|
32
|
+
|
|
33
|
+
class OptionDummy:
|
|
34
|
+
def __init__(self, options: Iterable[str] = []) -> None: ...
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
from _typeshed import BytesPath, StrOrBytesPath, StrPath
|
|
2
|
-
from collections.abc import Iterable
|
|
3
|
-
from typing import Literal, TypeVar, overload
|
|
4
|
-
|
|
5
|
-
_StrPathT = TypeVar("_StrPathT", bound=StrPath)
|
|
6
|
-
_BytesPathT = TypeVar("_BytesPathT", bound=BytesPath)
|
|
7
|
-
|
|
8
|
-
@overload
|
|
9
|
-
def copy_file(
|
|
10
|
-
src: StrPath,
|
|
11
|
-
dst: _StrPathT,
|
|
12
|
-
preserve_mode: bool | Literal[0, 1] = 1,
|
|
13
|
-
preserve_times: bool | Literal[0, 1] = 1,
|
|
14
|
-
update: bool | Literal[0, 1] = 0,
|
|
15
|
-
link: str | None = None,
|
|
16
|
-
verbose: bool | Literal[0, 1] = 1,
|
|
17
|
-
dry_run: bool | Literal[0, 1] = 0,
|
|
18
|
-
) -> tuple[_StrPathT | str, bool]: ...
|
|
19
|
-
@overload
|
|
20
|
-
def copy_file(
|
|
21
|
-
src: BytesPath,
|
|
22
|
-
dst: _BytesPathT,
|
|
23
|
-
preserve_mode: bool | Literal[0, 1] = 1,
|
|
24
|
-
preserve_times: bool | Literal[0, 1] = 1,
|
|
25
|
-
update: bool | Literal[0, 1] = 0,
|
|
26
|
-
link: str | None = None,
|
|
27
|
-
verbose: bool | Literal[0, 1] = 1,
|
|
28
|
-
dry_run: bool | Literal[0, 1] = 0,
|
|
29
|
-
) -> tuple[_BytesPathT | bytes, bool]: ...
|
|
30
|
-
@overload
|
|
31
|
-
def move_file(
|
|
32
|
-
src: StrPath, dst: _StrPathT, verbose: bool | Literal[0, 1] = 0, dry_run: bool | Literal[0, 1] = 0
|
|
33
|
-
) -> _StrPathT | str: ...
|
|
34
|
-
@overload
|
|
35
|
-
def move_file(
|
|
36
|
-
src: BytesPath, dst: _BytesPathT, verbose: bool | Literal[0, 1] = 0, dry_run: bool | Literal[0, 1] = 0
|
|
37
|
-
) -> _BytesPathT | bytes: ...
|
|
38
|
-
def write_file(filename: StrOrBytesPath, contents: Iterable[str]) -> None: ...
|
|
1
|
+
from _typeshed import BytesPath, StrOrBytesPath, StrPath
|
|
2
|
+
from collections.abc import Iterable
|
|
3
|
+
from typing import Literal, TypeVar, overload
|
|
4
|
+
|
|
5
|
+
_StrPathT = TypeVar("_StrPathT", bound=StrPath)
|
|
6
|
+
_BytesPathT = TypeVar("_BytesPathT", bound=BytesPath)
|
|
7
|
+
|
|
8
|
+
@overload
|
|
9
|
+
def copy_file(
|
|
10
|
+
src: StrPath,
|
|
11
|
+
dst: _StrPathT,
|
|
12
|
+
preserve_mode: bool | Literal[0, 1] = 1,
|
|
13
|
+
preserve_times: bool | Literal[0, 1] = 1,
|
|
14
|
+
update: bool | Literal[0, 1] = 0,
|
|
15
|
+
link: str | None = None,
|
|
16
|
+
verbose: bool | Literal[0, 1] = 1,
|
|
17
|
+
dry_run: bool | Literal[0, 1] = 0,
|
|
18
|
+
) -> tuple[_StrPathT | str, bool]: ...
|
|
19
|
+
@overload
|
|
20
|
+
def copy_file(
|
|
21
|
+
src: BytesPath,
|
|
22
|
+
dst: _BytesPathT,
|
|
23
|
+
preserve_mode: bool | Literal[0, 1] = 1,
|
|
24
|
+
preserve_times: bool | Literal[0, 1] = 1,
|
|
25
|
+
update: bool | Literal[0, 1] = 0,
|
|
26
|
+
link: str | None = None,
|
|
27
|
+
verbose: bool | Literal[0, 1] = 1,
|
|
28
|
+
dry_run: bool | Literal[0, 1] = 0,
|
|
29
|
+
) -> tuple[_BytesPathT | bytes, bool]: ...
|
|
30
|
+
@overload
|
|
31
|
+
def move_file(
|
|
32
|
+
src: StrPath, dst: _StrPathT, verbose: bool | Literal[0, 1] = 0, dry_run: bool | Literal[0, 1] = 0
|
|
33
|
+
) -> _StrPathT | str: ...
|
|
34
|
+
@overload
|
|
35
|
+
def move_file(
|
|
36
|
+
src: BytesPath, dst: _BytesPathT, verbose: bool | Literal[0, 1] = 0, dry_run: bool | Literal[0, 1] = 0
|
|
37
|
+
) -> _BytesPathT | bytes: ...
|
|
38
|
+
def write_file(filename: StrOrBytesPath, contents: Iterable[str]) -> None: ...
|