basedpyright 1.12.2 → 1.12.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/README.md +2 -2
- package/dist/typeshed-fallback/commit.txt +1 -1
- package/dist/typeshed-fallback/stdlib/VERSIONS +1 -1
- package/dist/typeshed-fallback/stdlib/_ast.pyi +661 -22
- package/dist/typeshed-fallback/stdlib/_ctypes.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/_socket.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/_stat.pyi +27 -13
- package/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/_typeshed/importlib.pyi +18 -0
- package/dist/typeshed-fallback/stdlib/_weakref.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/_weakrefset.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/array.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/ast.pyi +160 -70
- package/dist/typeshed-fallback/stdlib/asyncio/futures.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/asyncio/queues.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/asyncio/tasks.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/atexit.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/builtins.pyi +30 -8
- package/dist/typeshed-fallback/stdlib/calendar.pyi +29 -29
- package/dist/typeshed-fallback/stdlib/code.pyi +27 -8
- package/dist/typeshed-fallback/stdlib/concurrent/futures/_base.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/concurrent/futures/thread.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/contextvars.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/csv.pyi +4 -4
- package/dist/typeshed-fallback/stdlib/ctypes/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/dataclasses.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/dbm/__init__.pyi +9 -2
- package/dist/typeshed-fallback/stdlib/dbm/dumb.pyi +7 -1
- package/dist/typeshed-fallback/stdlib/dbm/gnu.pyi +5 -2
- package/dist/typeshed-fallback/stdlib/dbm/ndbm.pyi +5 -2
- package/dist/typeshed-fallback/stdlib/difflib.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/dis.pyi +16 -1
- package/dist/typeshed-fallback/stdlib/distutils/archive_util.pyi +22 -7
- package/dist/typeshed-fallback/stdlib/distutils/ccompiler.pyi +37 -16
- package/dist/typeshed-fallback/stdlib/distutils/cmd.pyi +52 -19
- package/dist/typeshed-fallback/stdlib/distutils/command/bdist_msi.pyi +4 -4
- package/dist/typeshed-fallback/stdlib/distutils/command/build.pyi +4 -2
- package/dist/typeshed-fallback/stdlib/distutils/command/build_py.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/distutils/command/check.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/distutils/command/config.pyi +5 -4
- package/dist/typeshed-fallback/stdlib/distutils/command/install.pyi +4 -2
- package/dist/typeshed-fallback/stdlib/distutils/command/register.pyi +4 -2
- package/dist/typeshed-fallback/stdlib/distutils/command/sdist.pyi +4 -2
- package/dist/typeshed-fallback/stdlib/distutils/core.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/distutils/dep_util.pyi +14 -3
- package/dist/typeshed-fallback/stdlib/distutils/dir_util.pyi +20 -10
- package/dist/typeshed-fallback/stdlib/distutils/dist.pyi +8 -5
- package/dist/typeshed-fallback/stdlib/distutils/file_util.pyi +35 -11
- package/dist/typeshed-fallback/stdlib/distutils/filelist.pyi +11 -3
- package/dist/typeshed-fallback/stdlib/distutils/spawn.pyi +5 -1
- package/dist/typeshed-fallback/stdlib/distutils/sysconfig.pyi +4 -2
- package/dist/typeshed-fallback/stdlib/distutils/text_file.pyi +7 -7
- package/dist/typeshed-fallback/stdlib/distutils/util.pyi +9 -5
- package/dist/typeshed-fallback/stdlib/faulthandler.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/filecmp.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/fileinput.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/functools.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/genericpath.pyi +7 -0
- package/dist/typeshed-fallback/stdlib/graphlib.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/gzip.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/http/__init__.pyi +11 -4
- package/dist/typeshed-fallback/stdlib/http/cookies.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/importlib/abc.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/importlib/util.pyi +3 -2
- package/dist/typeshed-fallback/stdlib/inspect.pyi +6 -0
- package/dist/typeshed-fallback/stdlib/keyword.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/logging/__init__.pyi +69 -42
- package/dist/typeshed-fallback/stdlib/mailbox.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/marshal.pyi +12 -4
- package/dist/typeshed-fallback/stdlib/math.pyi +3 -0
- package/dist/typeshed-fallback/stdlib/multiprocessing/managers.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/multiprocessing/pool.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/multiprocessing/queues.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/multiprocessing/shared_memory.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/ntpath.pyi +8 -1
- package/dist/typeshed-fallback/stdlib/opcode.pyi +6 -2
- package/dist/typeshed-fallback/stdlib/optparse.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/os/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/pathlib.pyi +6 -2
- package/dist/typeshed-fallback/stdlib/pkgutil.pyi +6 -6
- package/dist/typeshed-fallback/stdlib/posixpath.pyi +5 -0
- package/dist/typeshed-fallback/stdlib/queue.pyi +4 -2
- package/dist/typeshed-fallback/stdlib/random.pyi +4 -1
- package/dist/typeshed-fallback/stdlib/re.pyi +20 -9
- package/dist/typeshed-fallback/stdlib/shelve.pyi +15 -2
- package/dist/typeshed-fallback/stdlib/shutil.pyi +38 -8
- package/dist/typeshed-fallback/stdlib/signal.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/socket.pyi +13 -0
- package/dist/typeshed-fallback/stdlib/stat.pyi +6 -0
- package/dist/typeshed-fallback/stdlib/statistics.pyi +30 -1
- package/dist/typeshed-fallback/stdlib/subprocess.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/sys/__init__.pyi +15 -19
- package/dist/typeshed-fallback/stdlib/syslog.pyi +9 -0
- package/dist/typeshed-fallback/stdlib/tempfile.pyi +7 -3
- package/dist/typeshed-fallback/stdlib/threading.pyi +3 -0
- package/dist/typeshed-fallback/stdlib/token.pyi +5 -4
- package/dist/typeshed-fallback/stdlib/tokenize.pyi +10 -3
- package/dist/typeshed-fallback/stdlib/types.pyi +20 -18
- package/dist/typeshed-fallback/stdlib/typing.pyi +75 -21
- package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +104 -83
- package/dist/typeshed-fallback/stdlib/unittest/case.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/urllib/parse.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/urllib/request.pyi +17 -10
- package/dist/typeshed-fallback/stdlib/venv/__init__.pyi +31 -3
- package/dist/typeshed-fallback/stdlib/warnings.pyi +13 -1
- package/dist/typeshed-fallback/stdlib/wsgiref/util.pyi +2 -0
- package/dist/typeshed-fallback/stubs/Pillow/PIL/DdsImagePlugin.pyi +17 -17
- package/dist/typeshed-fallback/stubs/Pillow/PIL/Image.pyi +29 -29
- package/dist/typeshed-fallback/stubs/Pillow/PIL/WalImageFile.pyi +2 -1
- package/dist/typeshed-fallback/stubs/Pillow/PIL/_binary.pyi +13 -13
- package/dist/typeshed-fallback/stubs/WebOb/webob/multidict.pyi +8 -3
- package/dist/typeshed-fallback/stubs/WebOb/webob/request.pyi +10 -3
- package/dist/typeshed-fallback/stubs/antlr4-python3-runtime/antlr4/atn/ATNType.pyi +2 -2
- package/dist/typeshed-fallback/stubs/antlr4-python3-runtime/antlr4/atn/LexerAction.pyi +8 -8
- package/dist/typeshed-fallback/stubs/antlr4-python3-runtime/antlr4/atn/PredictionMode.pyi +3 -3
- package/dist/typeshed-fallback/stubs/assertpy/METADATA.toml +2 -0
- package/dist/typeshed-fallback/stubs/assertpy/assertpy/__init__.pyi +12 -0
- package/dist/typeshed-fallback/stubs/assertpy/assertpy/assertpy.pyi +70 -0
- package/dist/typeshed-fallback/stubs/assertpy/assertpy/base.pyi +21 -0
- package/dist/typeshed-fallback/stubs/assertpy/assertpy/collection.pyi +11 -0
- package/dist/typeshed-fallback/stubs/assertpy/assertpy/contains.pyi +16 -0
- package/dist/typeshed-fallback/stubs/assertpy/assertpy/date.pyi +11 -0
- package/dist/typeshed-fallback/stubs/assertpy/assertpy/dict.pyi +12 -0
- package/dist/typeshed-fallback/stubs/assertpy/assertpy/dynamic.pyi +7 -0
- package/dist/typeshed-fallback/stubs/assertpy/assertpy/exception.pyi +8 -0
- package/dist/typeshed-fallback/stubs/assertpy/assertpy/extracting.pyi +7 -0
- package/dist/typeshed-fallback/stubs/assertpy/assertpy/file.pyi +15 -0
- package/dist/typeshed-fallback/stubs/assertpy/assertpy/helpers.pyi +3 -0
- package/dist/typeshed-fallback/stubs/assertpy/assertpy/numeric.pyi +24 -0
- package/dist/typeshed-fallback/stubs/assertpy/assertpy/snapshot.pyi +6 -0
- package/dist/typeshed-fallback/stubs/assertpy/assertpy/string.pyi +18 -0
- package/dist/typeshed-fallback/stubs/beautifulsoup4/bs4/element.pyi +15 -7
- package/dist/typeshed-fallback/stubs/docker/docker/api/container.pyi +119 -61
- package/dist/typeshed-fallback/stubs/docker/docker/errors.pyi +3 -3
- package/dist/typeshed-fallback/stubs/docker/docker/models/containers.pyi +31 -20
- package/dist/typeshed-fallback/stubs/docker/docker/utils/json_stream.pyi +16 -8
- package/dist/typeshed-fallback/stubs/flake8/METADATA.toml +3 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/__init__.pyi +8 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/_compat.pyi +5 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/api/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/api/legacy.pyi +27 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/checker.pyi +56 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/defaults.pyi +12 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/discover_files.pyi +8 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/exceptions.pyi +24 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/formatting/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/formatting/_windows_color.pyi +1 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/formatting/base.pyi +24 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/formatting/default.pyi +29 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/main/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/main/application.pyi +29 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/main/cli.pyi +3 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/main/debug.pyi +5 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/main/options.pyi +12 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/options/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/options/aggregator.pyi +12 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/options/config.pyi +10 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/options/manager.pyi +71 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/options/parse_args.pyi +6 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/plugins/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/plugins/finder.pyi +48 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/plugins/pycodestyle.pyi +32 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/plugins/pyflakes.pyi +21 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/plugins/reporter.pyi +9 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/processor.pyi +72 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/statistics.pyi +28 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/style_guide.pyi +70 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/utils.pyi +25 -0
- package/dist/typeshed-fallback/stubs/flake8/flake8/violation.pyi +13 -0
- package/dist/typeshed-fallback/stubs/fpdf2/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/bidi.pyi +5 -3
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/drawing.pyi +5 -1
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/enums.pyi +15 -2
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/fpdf.pyi +2 -1
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/html.pyi +45 -32
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/line_break.pyi +4 -4
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/outline.pyi +1 -1
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/svg.pyi +0 -1
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/table.pyi +2 -1
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/util.pyi +4 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/adapters.pyi +1 -1
- package/dist/typeshed-fallback/stubs/hvac/hvac/v1/__init__.pyi +35 -23
- package/dist/typeshed-fallback/stubs/influxdb-client/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/influxdb-client/influxdb_client/client/exceptions.pyi +3 -1
- package/dist/typeshed-fallback/stubs/influxdb-client/influxdb_client/rest.pyi +8 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/dag.pyi +2 -0
- package/dist/typeshed-fallback/stubs/psutil/psutil/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stubs/psutil/psutil/_pswindows.pyi +8 -6
- package/dist/typeshed-fallback/stubs/pyaudio/METADATA.toml +2 -2
- package/dist/typeshed-fallback/stubs/pyflakes/pyflakes/scripts/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/pyflakes/pyflakes/scripts/pyflakes.pyi +8 -0
- package/dist/typeshed-fallback/stubs/pygit2/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/_pygit2.pyi +1 -15
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/enums.pyi +313 -314
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/index.pyi +2 -1
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/remotes.pyi +7 -1
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/repository.pyi +4 -14
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/utils.pyi +7 -1
- package/dist/typeshed-fallback/stubs/pynput/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/regex/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/regex/regex/_regex_core.pyi +35 -35
- package/dist/typeshed-fallback/stubs/regex/regex/regex.pyi +10 -10
- package/dist/typeshed-fallback/stubs/requests/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/__init__.pyi +16 -9
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/__init__.pyi +4 -2
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/_modified.pyi +16 -5
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/archive_util.pyi +25 -10
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/ccompiler.pyi +38 -16
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/cmd.pyi +58 -30
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/build_py.pyi +2 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/install_lib.pyi +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/install_scripts.pyi +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/upload.pyi +2 -2
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/dep_util.pyi +1 -3
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/dist.pyi +8 -5
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/filelist.pyi +14 -6
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/sysconfig.pyi +4 -2
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/util.pyi +8 -4
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/build_meta.pyi +4 -3
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/bdist_egg.pyi +9 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/build_ext.pyi +2 -2
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/install.pyi +3 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/install_lib.pyi +10 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/install_scripts.pyi +1 -3
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/upload_docs.pyi +2 -3
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/config/expand.pyi +1 -1
- package/dist/typeshed-fallback/stubs/six/six/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stubs/uWSGI/METADATA.toml +4 -1
- package/dist/typeshed-fallback/stubs/ujson/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/wurlitzer/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/wurlitzer/wurlitzer.pyi +48 -6
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from _typeshed import StrOrBytesPath, StrPath
|
|
2
2
|
from collections.abc import Iterator
|
|
3
|
-
from typing_extensions import Self
|
|
3
|
+
from typing_extensions import Self, deprecated
|
|
4
4
|
|
|
5
5
|
from _cffi_backend import _CDataBase
|
|
6
6
|
|
|
@@ -40,6 +40,7 @@ class IndexEntry:
|
|
|
40
40
|
@property
|
|
41
41
|
def oid(self) -> Oid: ...
|
|
42
42
|
@property
|
|
43
|
+
@deprecated("Use str(entry.id)")
|
|
43
44
|
def hex(self) -> str: ...
|
|
44
45
|
def __eq__(self, other: object) -> bool: ...
|
|
45
46
|
|
|
@@ -58,7 +58,13 @@ class Remote:
|
|
|
58
58
|
def fetch_refspecs(self) -> list[str]: ...
|
|
59
59
|
@property
|
|
60
60
|
def push_refspecs(self) -> list[str]: ...
|
|
61
|
-
def push(
|
|
61
|
+
def push(
|
|
62
|
+
self,
|
|
63
|
+
specs: _IntoStrArray,
|
|
64
|
+
callbacks: RemoteCallbacks | None = None,
|
|
65
|
+
proxy: _ProxySpec = None,
|
|
66
|
+
push_options: _IntoStrArray | None = None,
|
|
67
|
+
) -> None: ...
|
|
62
68
|
|
|
63
69
|
_RemoteName: TypeAlias = bytes | str
|
|
64
70
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
from _typeshed import StrOrBytesPath
|
|
2
|
-
from collections.abc import Callable,
|
|
2
|
+
from collections.abc import Callable, Iterator
|
|
3
3
|
from tarfile import TarInfo
|
|
4
4
|
from typing import IO, Any, Protocol
|
|
5
|
-
from typing_extensions import TypeAlias
|
|
5
|
+
from typing_extensions import TypeAlias
|
|
6
6
|
|
|
7
7
|
from ._pygit2 import Blob, Commit, Diff, Object, Oid, Reference, Repository as _Repository, Signature, Tree, _OidArg
|
|
8
8
|
from .blame import Blame
|
|
9
9
|
from .branches import Branches
|
|
10
|
-
from .callbacks import CheckoutCallbacks,
|
|
10
|
+
from .callbacks import CheckoutCallbacks, StashApplyCallbacks
|
|
11
11
|
from .config import Config
|
|
12
12
|
from .enums import (
|
|
13
13
|
AttrCheck,
|
|
@@ -26,7 +26,7 @@ from .index import Index, IndexEntry
|
|
|
26
26
|
from .packbuilder import PackBuilder
|
|
27
27
|
from .references import References
|
|
28
28
|
from .remotes import RemoteCollection
|
|
29
|
-
from .submodules import
|
|
29
|
+
from .submodules import SubmoduleCollection
|
|
30
30
|
from .utils import _IntoStrArray
|
|
31
31
|
|
|
32
32
|
_PackDelegate: TypeAlias = Callable[[PackBuilder], None]
|
|
@@ -47,16 +47,6 @@ class BaseRepository(_Repository):
|
|
|
47
47
|
self, path: StrOrBytesPath | None = None, pack_delegate: _PackDelegate | None = None, n_threads: int | None = None
|
|
48
48
|
) -> int: ...
|
|
49
49
|
def __iter__(self) -> Iterator[Oid]: ...
|
|
50
|
-
@deprecated("Use repo.submodules.add(...)")
|
|
51
|
-
def add_submodule(self, url: str, path: str, link: bool = True, callbacks: RemoteCallbacks | None = None) -> Submodule: ...
|
|
52
|
-
@deprecated("Use repo.submodules[...]")
|
|
53
|
-
def lookup_submodule(self, path: str) -> Submodule: ...
|
|
54
|
-
@deprecated("Use repo.submodules.init(...)")
|
|
55
|
-
def init_submodules(self, submodules: Iterable[str] | None = None, overwrite: bool = False) -> None: ...
|
|
56
|
-
@deprecated("Use repo.submodules.update(...)")
|
|
57
|
-
def update_submodules(
|
|
58
|
-
self, submodules: Iterable[str] | None = None, init: bool = False, callbacks: RemoteCallbacks | None = None
|
|
59
|
-
) -> None: ...
|
|
60
50
|
def get(self, key: _OidArg, default: Object | None = None) -> Object | None: ...
|
|
61
51
|
def __getitem__(self, key: _OidArg) -> Object: ...
|
|
62
52
|
def __contains__(self, key: _OidArg) -> bool: ...
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import contextlib
|
|
1
2
|
import types
|
|
2
3
|
from _typeshed import StrOrBytesPath, StrPath
|
|
4
|
+
from collections.abc import Iterator
|
|
3
5
|
from typing import Generic, TypeVar
|
|
4
6
|
from typing_extensions import TypeAlias
|
|
5
7
|
|
|
@@ -9,6 +11,8 @@ def maybe_string(ptr: _CDataBase) -> str | None: ...
|
|
|
9
11
|
def to_bytes(s: _CDataBase | StrOrBytesPath | None, encoding: str = "utf-8", errors: str = "strict") -> _CDataBase | bytes: ...
|
|
10
12
|
def to_str(s: StrOrBytesPath) -> str: ...
|
|
11
13
|
def ptr_to_bytes(ptr_cdata: _CDataBase) -> bytes: ...
|
|
14
|
+
@contextlib.contextmanager
|
|
15
|
+
def new_git_strarray() -> Iterator[_GitStrArray]: ...
|
|
12
16
|
def strarray_to_strings(arr: _GitStrArray) -> list[str]: ...
|
|
13
17
|
|
|
14
18
|
# Actual type: _cffi_backend.__CDataOwn <cdata 'struct git_strarray *'>
|
|
@@ -21,12 +25,14 @@ class _GitStrArray(_CDataBase): # type: ignore[misc] # pyright: ignore
|
|
|
21
25
|
_IntoStrArray: TypeAlias = list[StrPath] | tuple[StrPath] | None
|
|
22
26
|
|
|
23
27
|
class StrArray:
|
|
24
|
-
array: _CDataBase | _GitStrArray
|
|
25
28
|
def __init__(self, l: _IntoStrArray) -> None: ...
|
|
26
29
|
def __enter__(self) -> _CDataBase: ...
|
|
27
30
|
def __exit__(
|
|
28
31
|
self, type: type[BaseException] | None, value: BaseException | None, traceback: types.TracebackType | None
|
|
29
32
|
) -> None: ...
|
|
33
|
+
@property
|
|
34
|
+
def ptr(self) -> _CDataBase | _GitStrArray: ...
|
|
35
|
+
def assign_to(self, git_strarray: _GitStrArray) -> None: ...
|
|
30
36
|
|
|
31
37
|
_T = TypeVar("_T")
|
|
32
38
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
version = "2024.
|
|
1
|
+
version = "2024.5.15"
|
|
2
2
|
upstream_repository = "https://github.com/mrabarnett/mrab-regex"
|
|
@@ -44,42 +44,42 @@ class RegexFlag(enum.IntFlag):
|
|
|
44
44
|
X = 0x40
|
|
45
45
|
VERBOSE = X
|
|
46
46
|
|
|
47
|
-
A
|
|
48
|
-
ASCII
|
|
49
|
-
B
|
|
50
|
-
BESTMATCH
|
|
51
|
-
D
|
|
52
|
-
DEBUG
|
|
53
|
-
E
|
|
54
|
-
ENHANCEMATCH
|
|
55
|
-
F
|
|
56
|
-
FULLCASE
|
|
57
|
-
I
|
|
58
|
-
IGNORECASE
|
|
59
|
-
L
|
|
60
|
-
LOCALE
|
|
61
|
-
M
|
|
62
|
-
MULTILINE
|
|
63
|
-
P
|
|
64
|
-
POSIX
|
|
65
|
-
R
|
|
66
|
-
REVERSE
|
|
67
|
-
T
|
|
68
|
-
TEMPLATE
|
|
69
|
-
S
|
|
70
|
-
DOTALL
|
|
71
|
-
U
|
|
72
|
-
UNICODE
|
|
73
|
-
V0
|
|
74
|
-
VERSION0
|
|
75
|
-
V1
|
|
76
|
-
VERSION1
|
|
77
|
-
W
|
|
78
|
-
WORD
|
|
79
|
-
X
|
|
80
|
-
VERBOSE
|
|
47
|
+
A = RegexFlag.A
|
|
48
|
+
ASCII = RegexFlag.ASCII
|
|
49
|
+
B = RegexFlag.B
|
|
50
|
+
BESTMATCH = RegexFlag.BESTMATCH
|
|
51
|
+
D = RegexFlag.D
|
|
52
|
+
DEBUG = RegexFlag.DEBUG
|
|
53
|
+
E = RegexFlag.E
|
|
54
|
+
ENHANCEMATCH = RegexFlag.ENHANCEMATCH
|
|
55
|
+
F = RegexFlag.F
|
|
56
|
+
FULLCASE = RegexFlag.FULLCASE
|
|
57
|
+
I = RegexFlag.I
|
|
58
|
+
IGNORECASE = RegexFlag.IGNORECASE
|
|
59
|
+
L = RegexFlag.L
|
|
60
|
+
LOCALE = RegexFlag.LOCALE
|
|
61
|
+
M = RegexFlag.M
|
|
62
|
+
MULTILINE = RegexFlag.MULTILINE
|
|
63
|
+
P = RegexFlag.P
|
|
64
|
+
POSIX = RegexFlag.POSIX
|
|
65
|
+
R = RegexFlag.R
|
|
66
|
+
REVERSE = RegexFlag.REVERSE
|
|
67
|
+
T = RegexFlag.T
|
|
68
|
+
TEMPLATE = RegexFlag.TEMPLATE
|
|
69
|
+
S = RegexFlag.S
|
|
70
|
+
DOTALL = RegexFlag.DOTALL
|
|
71
|
+
U = RegexFlag.U
|
|
72
|
+
UNICODE = RegexFlag.UNICODE
|
|
73
|
+
V0 = RegexFlag.V0
|
|
74
|
+
VERSION0 = RegexFlag.VERSION0
|
|
75
|
+
V1 = RegexFlag.V1
|
|
76
|
+
VERSION1 = RegexFlag.VERSION1
|
|
77
|
+
W = RegexFlag.W
|
|
78
|
+
WORD = RegexFlag.WORD
|
|
79
|
+
X = RegexFlag.X
|
|
80
|
+
VERBOSE = RegexFlag.VERBOSE
|
|
81
81
|
|
|
82
|
-
DEFAULT_VERSION:
|
|
82
|
+
DEFAULT_VERSION: RegexFlag
|
|
83
83
|
|
|
84
84
|
_Lexicon: TypeAlias = list[tuple[AnyStr, Callable[[Scanner[AnyStr], AnyStr], Any]]]
|
|
85
85
|
|
|
@@ -112,7 +112,7 @@ def split(
|
|
|
112
112
|
) -> list[str | Any]: ...
|
|
113
113
|
@overload
|
|
114
114
|
def split(
|
|
115
|
-
pattern:
|
|
115
|
+
pattern: bytes | Pattern[bytes],
|
|
116
116
|
string: ReadableBuffer,
|
|
117
117
|
maxsplit: int = 0,
|
|
118
118
|
flags: int = 0,
|
|
@@ -134,7 +134,7 @@ def splititer(
|
|
|
134
134
|
) -> _regex.Splitter[str]: ...
|
|
135
135
|
@overload
|
|
136
136
|
def splititer(
|
|
137
|
-
pattern:
|
|
137
|
+
pattern: bytes | Pattern[bytes],
|
|
138
138
|
string: ReadableBuffer,
|
|
139
139
|
maxsplit: int = 0,
|
|
140
140
|
flags: int = 0,
|
|
@@ -158,7 +158,7 @@ def findall(
|
|
|
158
158
|
) -> list[Any]: ...
|
|
159
159
|
@overload
|
|
160
160
|
def findall(
|
|
161
|
-
pattern:
|
|
161
|
+
pattern: bytes | Pattern[bytes],
|
|
162
162
|
string: ReadableBuffer,
|
|
163
163
|
flags: int = 0,
|
|
164
164
|
pos: int | None = None,
|
|
@@ -185,7 +185,7 @@ def finditer(
|
|
|
185
185
|
) -> _regex.Scanner[str]: ...
|
|
186
186
|
@overload
|
|
187
187
|
def finditer(
|
|
188
|
-
pattern:
|
|
188
|
+
pattern: bytes | Pattern[bytes],
|
|
189
189
|
string: ReadableBuffer,
|
|
190
190
|
flags: int = 0,
|
|
191
191
|
pos: int | None = None,
|
|
@@ -213,7 +213,7 @@ def sub(
|
|
|
213
213
|
) -> str: ...
|
|
214
214
|
@overload
|
|
215
215
|
def sub(
|
|
216
|
-
pattern:
|
|
216
|
+
pattern: bytes | Pattern[bytes],
|
|
217
217
|
repl: ReadableBuffer | Callable[[Match[bytes]], ReadableBuffer],
|
|
218
218
|
string: ReadableBuffer,
|
|
219
219
|
count: int = 0,
|
|
@@ -241,7 +241,7 @@ def subf(
|
|
|
241
241
|
) -> str: ...
|
|
242
242
|
@overload
|
|
243
243
|
def subf(
|
|
244
|
-
pattern:
|
|
244
|
+
pattern: bytes | Pattern[bytes],
|
|
245
245
|
format: ReadableBuffer | Callable[[Match[bytes]], ReadableBuffer],
|
|
246
246
|
string: ReadableBuffer,
|
|
247
247
|
count: int = 0,
|
|
@@ -269,7 +269,7 @@ def subn(
|
|
|
269
269
|
) -> tuple[str, int]: ...
|
|
270
270
|
@overload
|
|
271
271
|
def subn(
|
|
272
|
-
pattern:
|
|
272
|
+
pattern: bytes | Pattern[bytes],
|
|
273
273
|
repl: ReadableBuffer | Callable[[Match[bytes]], ReadableBuffer],
|
|
274
274
|
string: ReadableBuffer,
|
|
275
275
|
count: int = 0,
|
|
@@ -297,7 +297,7 @@ def subfn(
|
|
|
297
297
|
) -> tuple[str, int]: ...
|
|
298
298
|
@overload
|
|
299
299
|
def subfn(
|
|
300
|
-
pattern:
|
|
300
|
+
pattern: bytes | Pattern[bytes],
|
|
301
301
|
format: ReadableBuffer | Callable[[Match[bytes]], ReadableBuffer],
|
|
302
302
|
string: ReadableBuffer,
|
|
303
303
|
count: int = 0,
|
|
@@ -570,7 +570,7 @@ class Pattern(Generic[AnyStr]):
|
|
|
570
570
|
def __copy__(self) -> Self: ...
|
|
571
571
|
def __deepcopy__(self) -> Self: ...
|
|
572
572
|
if sys.version_info >= (3, 9):
|
|
573
|
-
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
|
|
573
|
+
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
|
|
574
574
|
|
|
575
575
|
@final
|
|
576
576
|
class Match(Generic[AnyStr]):
|
|
@@ -649,4 +649,4 @@ class Match(Generic[AnyStr]):
|
|
|
649
649
|
def __copy__(self) -> Self: ...
|
|
650
650
|
def __deepcopy__(self) -> Self: ...
|
|
651
651
|
if sys.version_info >= (3, 9):
|
|
652
|
-
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
|
|
652
|
+
def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import types
|
|
2
2
|
import zipimport
|
|
3
|
-
from _typeshed import Incomplete, StrPath, Unused
|
|
3
|
+
from _typeshed import BytesPath, Incomplete, StrOrBytesPath, StrPath, Unused
|
|
4
4
|
from collections.abc import Callable, Generator, Iterable, Iterator, Sequence
|
|
5
5
|
from io import BytesIO
|
|
6
6
|
from itertools import chain
|
|
@@ -12,6 +12,10 @@ from zipfile import ZipInfo
|
|
|
12
12
|
|
|
13
13
|
from ._vendored_packaging import requirements as packaging_requirements, version as packaging_version
|
|
14
14
|
|
|
15
|
+
# TODO: Use _typeshed.importlib.LoaderProtocol once mypy has included it in its vendored typeshed
|
|
16
|
+
class _LoaderProtocol(Protocol):
|
|
17
|
+
def load_module(self, fullname: str, /) -> types.ModuleType: ...
|
|
18
|
+
|
|
15
19
|
_T = TypeVar("_T")
|
|
16
20
|
_D = TypeVar("_D", bound=Distribution)
|
|
17
21
|
_NestedStr: TypeAlias = str | Iterable[_NestedStr]
|
|
@@ -179,11 +183,11 @@ run_main = run_script
|
|
|
179
183
|
|
|
180
184
|
class Environment:
|
|
181
185
|
def __init__(
|
|
182
|
-
self, search_path:
|
|
186
|
+
self, search_path: Iterable[str] | None = None, platform: str | None = ..., python: str | None = ...
|
|
183
187
|
) -> None: ...
|
|
184
188
|
def can_add(self, dist: Distribution) -> bool: ...
|
|
185
189
|
def remove(self, dist: Distribution) -> None: ...
|
|
186
|
-
def scan(self, search_path:
|
|
190
|
+
def scan(self, search_path: Iterable[str] | None = None) -> None: ...
|
|
187
191
|
def __getitem__(self, project_name: str) -> list[Distribution]: ...
|
|
188
192
|
def add(self, dist: Distribution) -> None: ...
|
|
189
193
|
@overload
|
|
@@ -280,8 +284,8 @@ class ResourceManager:
|
|
|
280
284
|
def resource_string(self, package_or_requirement: _PkgReqType, resource_name: str) -> bytes: ...
|
|
281
285
|
def resource_listdir(self, package_or_requirement: _PkgReqType, resource_name: str) -> list[str]: ...
|
|
282
286
|
def extraction_error(self) -> NoReturn: ...
|
|
283
|
-
def get_cache_path(self, archive_name: str, names: Iterable[
|
|
284
|
-
def postprocess(self, tempname:
|
|
287
|
+
def get_cache_path(self, archive_name: str, names: Iterable[StrPath] = ()) -> str: ...
|
|
288
|
+
def postprocess(self, tempname: StrOrBytesPath, filename: str) -> None: ...
|
|
285
289
|
def set_extraction_path(self, path: str) -> None: ...
|
|
286
290
|
def cleanup_resources(self, force: bool = False) -> list[str]: ...
|
|
287
291
|
|
|
@@ -359,7 +363,7 @@ def evaluate_marker(text: str, extra: Incomplete | None = None) -> bool: ...
|
|
|
359
363
|
class NullProvider:
|
|
360
364
|
egg_name: str | None
|
|
361
365
|
egg_info: str | None
|
|
362
|
-
loader:
|
|
366
|
+
loader: _LoaderProtocol | None
|
|
363
367
|
module_path: str | None
|
|
364
368
|
|
|
365
369
|
def __init__(self, module: _ModuleLike) -> None: ...
|
|
@@ -417,7 +421,7 @@ class Distribution(NullProvider):
|
|
|
417
421
|
def activate(self, path: list[str] | None = None, replace: bool = False) -> None: ...
|
|
418
422
|
def egg_name(self) -> str: ... # type: ignore[override] # supertype's egg_name is a variable, not a method
|
|
419
423
|
@classmethod
|
|
420
|
-
def from_filename(cls, filename:
|
|
424
|
+
def from_filename(cls, filename: StrOrBytesPath, metadata: _MetadataType = None, *, precedence: int = 3) -> Distribution: ...
|
|
421
425
|
def as_requirement(self) -> Requirement: ...
|
|
422
426
|
def load_entry_point(self, group: str, name: str) -> _ResolvedEntryPoint: ...
|
|
423
427
|
@overload
|
|
@@ -487,7 +491,10 @@ get_platform = get_build_platform
|
|
|
487
491
|
def get_supported_platform() -> str: ...
|
|
488
492
|
def compatible_platforms(provided: str | None, required: str | None) -> bool: ...
|
|
489
493
|
def get_default_cache() -> str: ...
|
|
490
|
-
def ensure_directory(path:
|
|
491
|
-
|
|
494
|
+
def ensure_directory(path: StrOrBytesPath) -> None: ...
|
|
495
|
+
@overload
|
|
496
|
+
def normalize_path(filename: StrPath) -> str: ...
|
|
497
|
+
@overload
|
|
498
|
+
def normalize_path(filename: BytesPath) -> bytes: ...
|
|
492
499
|
|
|
493
500
|
class PkgResourcesDeprecationWarning(Warning): ...
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from _typeshed import StrPath
|
|
2
2
|
from abc import abstractmethod
|
|
3
3
|
from collections.abc import Iterable, Mapping, Sequence
|
|
4
|
-
from typing import Any
|
|
4
|
+
from typing import Any, Literal
|
|
5
5
|
|
|
6
6
|
from ._distutils.cmd import Command as _Command
|
|
7
7
|
from .depends import Require as Require
|
|
@@ -76,7 +76,9 @@ class Command(_Command):
|
|
|
76
76
|
distribution: Distribution
|
|
77
77
|
def __init__(self, dist: Distribution, **kw: Any) -> None: ...
|
|
78
78
|
def ensure_string_list(self, option: str | list[str]) -> None: ...
|
|
79
|
-
def reinitialize_command(
|
|
79
|
+
def reinitialize_command(
|
|
80
|
+
self, command: _Command | str, reinit_subcommands: bool | Literal[0, 1] = 0, **kw: Any
|
|
81
|
+
) -> _Command: ...
|
|
80
82
|
@abstractmethod
|
|
81
83
|
def initialize_options(self) -> None: ...
|
|
82
84
|
@abstractmethod
|
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
from
|
|
1
|
+
from _typeshed import StrOrBytesPath
|
|
2
|
+
from collections.abc import Callable, Iterable
|
|
3
|
+
from typing import Literal, TypeVar
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
def
|
|
5
|
+
_SourcesT = TypeVar("_SourcesT", bound=StrOrBytesPath)
|
|
6
|
+
_TargetsT = TypeVar("_TargetsT", bound=StrOrBytesPath)
|
|
7
|
+
|
|
8
|
+
def newer(source: StrOrBytesPath, target: StrOrBytesPath) -> bool: ...
|
|
9
|
+
def newer_pairwise(
|
|
10
|
+
sources: Iterable[_SourcesT], targets: Iterable[_TargetsT], newer: Callable[[_SourcesT, _TargetsT], bool] = ...
|
|
11
|
+
) -> tuple[list[_SourcesT], list[_TargetsT]]: ...
|
|
12
|
+
def newer_group(
|
|
13
|
+
sources: Iterable[StrOrBytesPath], target: StrOrBytesPath, missing: Literal["error", "ignore", "newer"] = "error"
|
|
14
|
+
) -> bool: ...
|
|
15
|
+
def newer_pairwise_group(
|
|
16
|
+
sources: Iterable[_SourcesT], targets: Iterable[_TargetsT], *, newer: Callable[[_SourcesT, _TargetsT], bool] = ...
|
|
17
|
+
) -> tuple[list[_SourcesT], list[_TargetsT]]: ...
|
|
@@ -1,20 +1,35 @@
|
|
|
1
|
+
from _typeshed import StrOrBytesPath, StrPath
|
|
2
|
+
from typing import Literal, overload
|
|
3
|
+
|
|
4
|
+
@overload
|
|
1
5
|
def make_archive(
|
|
2
6
|
base_name: str,
|
|
3
7
|
format: str,
|
|
4
|
-
root_dir:
|
|
5
|
-
base_dir: str | None =
|
|
6
|
-
verbose:
|
|
7
|
-
dry_run:
|
|
8
|
-
owner: str | None =
|
|
9
|
-
group: str | None =
|
|
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,
|
|
10
25
|
) -> str: ...
|
|
11
26
|
def make_tarball(
|
|
12
27
|
base_name: str,
|
|
13
|
-
base_dir:
|
|
28
|
+
base_dir: StrPath,
|
|
14
29
|
compress: str | None = ...,
|
|
15
|
-
verbose:
|
|
16
|
-
dry_run:
|
|
30
|
+
verbose: bool | Literal[0, 1] = 0,
|
|
31
|
+
dry_run: bool | Literal[0, 1] = 0,
|
|
17
32
|
owner: str | None = ...,
|
|
18
33
|
group: str | None = ...,
|
|
19
34
|
) -> str: ...
|
|
20
|
-
def make_zipfile(base_name: str, base_dir: str, verbose:
|
|
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,8 +1,11 @@
|
|
|
1
|
-
from
|
|
2
|
-
from
|
|
1
|
+
from _typeshed import BytesPath, StrPath
|
|
2
|
+
from collections.abc import Callable, Iterable
|
|
3
|
+
from typing import Any, ClassVar, Literal, TypeVar, overload
|
|
3
4
|
from typing_extensions import TypeAlias
|
|
4
5
|
|
|
5
6
|
_Macro: TypeAlias = tuple[str] | tuple[str, str | None]
|
|
7
|
+
_StrPathT = TypeVar("_StrPathT", bound=StrPath)
|
|
8
|
+
_BytesPathT = TypeVar("_BytesPathT", bound=BytesPath)
|
|
6
9
|
|
|
7
10
|
def gen_lib_options(
|
|
8
11
|
compiler: CCompiler, library_dirs: list[str], runtime_library_dirs: list[str], libraries: list[str]
|
|
@@ -10,7 +13,11 @@ def gen_lib_options(
|
|
|
10
13
|
def gen_preprocess_options(macros: list[_Macro], include_dirs: list[str]) -> list[str]: ...
|
|
11
14
|
def get_default_compiler(osname: str | None = ..., platform: str | None = ...) -> str: ...
|
|
12
15
|
def new_compiler(
|
|
13
|
-
plat: str | None = ...,
|
|
16
|
+
plat: str | None = ...,
|
|
17
|
+
compiler: str | None = ...,
|
|
18
|
+
verbose: bool | Literal[0, 1] = 0,
|
|
19
|
+
dry_run: bool | Literal[0, 1] = 0,
|
|
20
|
+
force: bool | Literal[0, 1] = 0,
|
|
14
21
|
) -> CCompiler: ...
|
|
15
22
|
def show_compilers() -> None: ...
|
|
16
23
|
|
|
@@ -34,7 +41,9 @@ class CCompiler:
|
|
|
34
41
|
library_dirs: list[str]
|
|
35
42
|
runtime_library_dirs: list[str]
|
|
36
43
|
objects: list[str]
|
|
37
|
-
def __init__(
|
|
44
|
+
def __init__(
|
|
45
|
+
self, verbose: bool | Literal[0, 1] = 0, dry_run: bool | Literal[0, 1] = 0, force: bool | Literal[0, 1] = 0
|
|
46
|
+
) -> None: ...
|
|
38
47
|
def add_include_dir(self, dir: str) -> None: ...
|
|
39
48
|
def set_include_dirs(self, dirs: list[str]) -> None: ...
|
|
40
49
|
def add_library(self, libname: str) -> None: ...
|
|
@@ -48,7 +57,7 @@ class CCompiler:
|
|
|
48
57
|
def add_link_object(self, object: str) -> None: ...
|
|
49
58
|
def set_link_objects(self, objects: list[str]) -> None: ...
|
|
50
59
|
def detect_language(self, sources: str | list[str]) -> str | None: ...
|
|
51
|
-
def find_library_file(self, dirs: list[str], lib: str, debug: bool =
|
|
60
|
+
def find_library_file(self, dirs: list[str], lib: str, debug: bool | Literal[0, 1] = 0) -> str | None: ...
|
|
52
61
|
def has_function(
|
|
53
62
|
self,
|
|
54
63
|
funcname: str,
|
|
@@ -67,7 +76,7 @@ class CCompiler:
|
|
|
67
76
|
output_dir: str | None = ...,
|
|
68
77
|
macros: list[_Macro] | None = ...,
|
|
69
78
|
include_dirs: list[str] | None = ...,
|
|
70
|
-
debug: bool =
|
|
79
|
+
debug: bool | Literal[0, 1] = 0,
|
|
71
80
|
extra_preargs: list[str] | None = ...,
|
|
72
81
|
extra_postargs: list[str] | None = ...,
|
|
73
82
|
depends: list[str] | None = ...,
|
|
@@ -77,7 +86,7 @@ class CCompiler:
|
|
|
77
86
|
objects: list[str],
|
|
78
87
|
output_libname: str,
|
|
79
88
|
output_dir: str | None = ...,
|
|
80
|
-
debug: bool =
|
|
89
|
+
debug: bool | Literal[0, 1] = 0,
|
|
81
90
|
target_lang: str | None = ...,
|
|
82
91
|
) -> None: ...
|
|
83
92
|
def link(
|
|
@@ -90,7 +99,7 @@ class CCompiler:
|
|
|
90
99
|
library_dirs: list[str] | None = ...,
|
|
91
100
|
runtime_library_dirs: list[str] | None = ...,
|
|
92
101
|
export_symbols: list[str] | None = ...,
|
|
93
|
-
debug: bool =
|
|
102
|
+
debug: bool | Literal[0, 1] = 0,
|
|
94
103
|
extra_preargs: list[str] | None = ...,
|
|
95
104
|
extra_postargs: list[str] | None = ...,
|
|
96
105
|
build_temp: str | None = ...,
|
|
@@ -104,7 +113,7 @@ class CCompiler:
|
|
|
104
113
|
libraries: list[str] | None = ...,
|
|
105
114
|
library_dirs: list[str] | None = ...,
|
|
106
115
|
runtime_library_dirs: list[str] | None = ...,
|
|
107
|
-
debug: bool =
|
|
116
|
+
debug: bool | Literal[0, 1] = 0,
|
|
108
117
|
extra_preargs: list[str] | None = ...,
|
|
109
118
|
extra_postargs: list[str] | None = ...,
|
|
110
119
|
target_lang: str | None = ...,
|
|
@@ -118,7 +127,7 @@ class CCompiler:
|
|
|
118
127
|
library_dirs: list[str] | None = ...,
|
|
119
128
|
runtime_library_dirs: list[str] | None = ...,
|
|
120
129
|
export_symbols: list[str] | None = ...,
|
|
121
|
-
debug: bool =
|
|
130
|
+
debug: bool | Literal[0, 1] = 0,
|
|
122
131
|
extra_preargs: list[str] | None = ...,
|
|
123
132
|
extra_postargs: list[str] | None = ...,
|
|
124
133
|
build_temp: str | None = ...,
|
|
@@ -133,7 +142,7 @@ class CCompiler:
|
|
|
133
142
|
library_dirs: list[str] | None = ...,
|
|
134
143
|
runtime_library_dirs: list[str] | None = ...,
|
|
135
144
|
export_symbols: list[str] | None = ...,
|
|
136
|
-
debug: bool =
|
|
145
|
+
debug: bool | Literal[0, 1] = 0,
|
|
137
146
|
extra_preargs: list[str] | None = ...,
|
|
138
147
|
extra_postargs: list[str] | None = ...,
|
|
139
148
|
build_temp: str | None = ...,
|
|
@@ -148,14 +157,27 @@ class CCompiler:
|
|
|
148
157
|
extra_preargs: list[str] | None = ...,
|
|
149
158
|
extra_postargs: list[str] | None = ...,
|
|
150
159
|
) -> None: ...
|
|
151
|
-
|
|
152
|
-
def
|
|
153
|
-
|
|
154
|
-
def
|
|
160
|
+
@overload
|
|
161
|
+
def executable_filename(self, basename: str, strip_dir: Literal[0, False] = 0, output_dir: StrPath = ...) -> str: ...
|
|
162
|
+
@overload
|
|
163
|
+
def executable_filename(self, basename: StrPath, strip_dir: Literal[1, True], output_dir: StrPath = ...) -> str: ...
|
|
164
|
+
def library_filename(
|
|
165
|
+
self, libname: str, lib_type: str = "static", strip_dir: bool | Literal[0, 1] = 0, output_dir: StrPath = ""
|
|
166
|
+
) -> str: ...
|
|
167
|
+
def object_filenames(
|
|
168
|
+
self, source_filenames: Iterable[StrPath], strip_dir: bool | Literal[0, 1] = 0, output_dir: StrPath | None = ...
|
|
169
|
+
) -> list[str]: ...
|
|
170
|
+
@overload
|
|
171
|
+
def shared_object_filename(self, basename: str, strip_dir: Literal[0, False] = 0, output_dir: StrPath = ...) -> str: ...
|
|
172
|
+
@overload
|
|
173
|
+
def shared_object_filename(self, basename: StrPath, strip_dir: Literal[1, True], output_dir: StrPath = ...) -> str: ...
|
|
155
174
|
def execute(self, func: Callable[..., object], args: tuple[Any, ...], msg: str | None = ..., level: int = ...) -> None: ...
|
|
156
175
|
def spawn(self, cmd: list[str]) -> None: ...
|
|
157
176
|
def mkpath(self, name: str, mode: int = ...) -> None: ...
|
|
158
|
-
|
|
177
|
+
@overload
|
|
178
|
+
def move_file(self, src: StrPath, dst: _StrPathT) -> _StrPathT | str: ...
|
|
179
|
+
@overload
|
|
180
|
+
def move_file(self, src: BytesPath, dst: _BytesPathT) -> _BytesPathT | bytes: ...
|
|
159
181
|
def announce(self, msg: str, level: int = ...) -> None: ...
|
|
160
182
|
def warn(self, msg: str) -> None: ...
|
|
161
183
|
def debug_print(self, msg: str) -> None: ...
|