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,21 +1,24 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
2
|
from typing import NamedTuple
|
|
3
3
|
|
|
4
|
+
from docker.types.daemon import CancellableStream
|
|
5
|
+
|
|
6
|
+
from .images import Image
|
|
4
7
|
from .resource import Collection, Model
|
|
5
8
|
|
|
6
9
|
class Container(Model):
|
|
7
10
|
@property
|
|
8
|
-
def name(self): ...
|
|
11
|
+
def name(self) -> str | None: ...
|
|
9
12
|
@property
|
|
10
|
-
def image(self): ...
|
|
13
|
+
def image(self) -> Image | None: ...
|
|
11
14
|
@property
|
|
12
15
|
def labels(self): ...
|
|
13
16
|
@property
|
|
14
|
-
def status(self): ...
|
|
17
|
+
def status(self) -> str: ...
|
|
15
18
|
@property
|
|
16
|
-
def health(self): ...
|
|
19
|
+
def health(self) -> str: ...
|
|
17
20
|
@property
|
|
18
|
-
def ports(self): ...
|
|
21
|
+
def ports(self) -> dict[Incomplete, Incomplete]: ...
|
|
19
22
|
def attach(self, **kwargs): ...
|
|
20
23
|
def attach_socket(self, **kwargs): ...
|
|
21
24
|
def commit(self, repository: str | None = None, tag: str | None = None, **kwargs): ...
|
|
@@ -35,18 +38,20 @@ class Container(Model):
|
|
|
35
38
|
environment: Incomplete | None = None,
|
|
36
39
|
workdir: Incomplete | None = None,
|
|
37
40
|
demux: bool = False,
|
|
38
|
-
): ...
|
|
39
|
-
def export(self, chunk_size=2097152): ...
|
|
40
|
-
def get_archive(
|
|
41
|
+
) -> ExecResult: ...
|
|
42
|
+
def export(self, chunk_size: int | None = 2097152) -> str: ...
|
|
43
|
+
def get_archive(
|
|
44
|
+
self, path, chunk_size: int | None = 2097152, encode_stream: bool = False
|
|
45
|
+
) -> tuple[Incomplete, Incomplete]: ...
|
|
41
46
|
def kill(self, signal: Incomplete | None = None): ...
|
|
42
|
-
def logs(self, **kwargs): ...
|
|
47
|
+
def logs(self, **kwargs) -> CancellableStream | bytes: ...
|
|
43
48
|
def pause(self): ...
|
|
44
|
-
def put_archive(self, path, data): ...
|
|
49
|
+
def put_archive(self, path: str, data) -> bool: ...
|
|
45
50
|
def remove(self, **kwargs) -> None: ...
|
|
46
|
-
def rename(self, name): ...
|
|
47
|
-
def resize(self, height, width): ...
|
|
51
|
+
def rename(self, name: str): ...
|
|
52
|
+
def resize(self, height: int, width: int): ...
|
|
48
53
|
def restart(self, **kwargs): ...
|
|
49
|
-
def start(self, **kwargs): ...
|
|
54
|
+
def start(self, **kwargs) -> None: ...
|
|
50
55
|
def stats(self, **kwargs): ...
|
|
51
56
|
def stop(self, **kwargs) -> None: ...
|
|
52
57
|
def top(self, **kwargs): ...
|
|
@@ -57,24 +62,30 @@ class Container(Model):
|
|
|
57
62
|
class ContainerCollection(Collection[Container]):
|
|
58
63
|
model: type[Container]
|
|
59
64
|
def run(
|
|
60
|
-
self,
|
|
65
|
+
self,
|
|
66
|
+
image: str | Image,
|
|
67
|
+
command: str | list[str] | None = None,
|
|
68
|
+
stdout: bool = True,
|
|
69
|
+
stderr: bool = False,
|
|
70
|
+
remove: bool = False,
|
|
71
|
+
**kwargs,
|
|
61
72
|
): ...
|
|
62
|
-
def create(self, image, command:
|
|
63
|
-
def get(self, container_id): ...
|
|
73
|
+
def create(self, image: str, command: str | list[str] | None = None, **kwargs) -> Container: ... # type:ignore[override]
|
|
74
|
+
def get(self, container_id: str) -> Container: ...
|
|
64
75
|
def list(
|
|
65
76
|
self,
|
|
66
77
|
all: bool = False,
|
|
67
|
-
before:
|
|
78
|
+
before: str | None = None,
|
|
68
79
|
filters: Incomplete | None = None,
|
|
69
80
|
limit: int = -1,
|
|
70
|
-
since:
|
|
81
|
+
since: str | None = None,
|
|
71
82
|
sparse: bool = False,
|
|
72
83
|
ignore_removed: bool = False,
|
|
73
84
|
): ...
|
|
74
85
|
def prune(self, filters: Incomplete | None = None): ...
|
|
75
86
|
|
|
76
|
-
RUN_CREATE_KWARGS:
|
|
77
|
-
RUN_HOST_CONFIG_KWARGS:
|
|
87
|
+
RUN_CREATE_KWARGS: list[str]
|
|
88
|
+
RUN_HOST_CONFIG_KWARGS: list[str]
|
|
78
89
|
|
|
79
90
|
class ExecResult(NamedTuple):
|
|
80
91
|
exit_code: Incomplete
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
from collections.abc import Generator
|
|
1
|
+
import json
|
|
2
|
+
from collections.abc import Callable, Generator, Iterator
|
|
3
|
+
from typing import Any
|
|
4
|
+
from typing_extensions import TypeAlias
|
|
3
5
|
|
|
4
|
-
json_decoder:
|
|
6
|
+
json_decoder: json.JSONDecoder
|
|
5
7
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
def
|
|
8
|
+
# Type alias for JSON, explained at:
|
|
9
|
+
# https://github.com/python/typing/issues/182#issuecomment-1320974824.
|
|
10
|
+
_JSON: TypeAlias = dict[str, _JSON] | list[_JSON] | str | int | float | bool | None
|
|
11
|
+
|
|
12
|
+
def stream_as_text(stream: Iterator[str | bytes]) -> Generator[str, None, None]: ...
|
|
13
|
+
def json_splitter(buffer: str) -> tuple[_JSON, str] | None: ...
|
|
14
|
+
def json_stream(stream: Iterator[str]) -> Generator[_JSON, None, None]: ...
|
|
15
|
+
def line_splitter(buffer: str, separator: str = "\n") -> tuple[str, str] | None: ...
|
|
16
|
+
def split_buffer(
|
|
17
|
+
stream: Iterator[str | bytes], splitter: Callable[[str], tuple[str, str]] | None = None, decoder: Callable[[str], Any] = ...
|
|
18
|
+
) -> Generator[Any, None, None]: ...
|
|
File without changes
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import argparse
|
|
2
|
+
from _typeshed import Unused
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
from ..formatting import base as formatter
|
|
6
|
+
from ..main import application as app
|
|
7
|
+
|
|
8
|
+
__all__ = ("get_style_guide",)
|
|
9
|
+
|
|
10
|
+
class Report:
|
|
11
|
+
def __init__(self, application: app.Application) -> None: ...
|
|
12
|
+
@property
|
|
13
|
+
def total_errors(self) -> int: ...
|
|
14
|
+
def get_statistics(self, violation: str) -> list[str]: ...
|
|
15
|
+
|
|
16
|
+
class StyleGuide:
|
|
17
|
+
def __init__(self, application: app.Application) -> None: ...
|
|
18
|
+
@property
|
|
19
|
+
def options(self) -> argparse.Namespace: ...
|
|
20
|
+
@property
|
|
21
|
+
def paths(self) -> list[str]: ...
|
|
22
|
+
def check_files(self, paths: list[str] | None = None) -> Report: ...
|
|
23
|
+
def excluded(self, filename: str, parent: str | None = None) -> bool: ...
|
|
24
|
+
def init_report(self, reporter: type[formatter.BaseFormatter] | None = None) -> None: ...
|
|
25
|
+
def input_file(self, filename: str, lines: Unused = None, expected: Unused = None, line_offset: Unused = 0) -> Report: ...
|
|
26
|
+
|
|
27
|
+
def get_style_guide(**kwargs: Any) -> StyleGuide: ...
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import argparse
|
|
2
|
+
import tokenize
|
|
3
|
+
from _typeshed import Incomplete
|
|
4
|
+
from collections.abc import Sequence
|
|
5
|
+
from logging import Logger
|
|
6
|
+
from typing import Any
|
|
7
|
+
from typing_extensions import TypeAlias
|
|
8
|
+
|
|
9
|
+
from .plugins.finder import Checkers, LoadedPlugin
|
|
10
|
+
from .processor import _LogicalMapping
|
|
11
|
+
from .style_guide import StyleGuideManager
|
|
12
|
+
|
|
13
|
+
Results: TypeAlias = list[tuple[str, int, int, str, str | None]]
|
|
14
|
+
|
|
15
|
+
LOG: Logger
|
|
16
|
+
SERIAL_RETRY_ERRNOS: Incomplete
|
|
17
|
+
|
|
18
|
+
class Manager:
|
|
19
|
+
style_guide: Incomplete
|
|
20
|
+
options: Incomplete
|
|
21
|
+
plugins: Incomplete
|
|
22
|
+
jobs: Incomplete
|
|
23
|
+
statistics: Incomplete
|
|
24
|
+
exclude: Incomplete
|
|
25
|
+
argv: Incomplete
|
|
26
|
+
results: Incomplete
|
|
27
|
+
def __init__(self, style_guide: StyleGuideManager, plugins: Checkers, argv: Sequence[str]) -> None: ...
|
|
28
|
+
def report(self) -> tuple[int, int]: ...
|
|
29
|
+
def run_parallel(self) -> None: ...
|
|
30
|
+
def run_serial(self) -> None: ...
|
|
31
|
+
def run(self) -> None: ...
|
|
32
|
+
filenames: Incomplete
|
|
33
|
+
def start(self) -> None: ...
|
|
34
|
+
def stop(self) -> None: ...
|
|
35
|
+
|
|
36
|
+
class FileChecker:
|
|
37
|
+
options: Incomplete
|
|
38
|
+
filename: Incomplete
|
|
39
|
+
plugins: Incomplete
|
|
40
|
+
results: Incomplete
|
|
41
|
+
statistics: Incomplete
|
|
42
|
+
processor: Incomplete
|
|
43
|
+
display_name: Incomplete
|
|
44
|
+
should_process: bool
|
|
45
|
+
def __init__(self, *, filename: str, plugins: Checkers, options: argparse.Namespace) -> None: ...
|
|
46
|
+
def report(self, error_code: str | None, line_number: int, column: int, text: str) -> str: ...
|
|
47
|
+
def run_check(self, plugin: LoadedPlugin, **arguments: Any) -> Any: ...
|
|
48
|
+
def run_ast_checks(self) -> None: ...
|
|
49
|
+
def run_logical_checks(self) -> None: ...
|
|
50
|
+
def run_physical_checks(self, physical_line: str) -> None: ...
|
|
51
|
+
def process_tokens(self) -> None: ...
|
|
52
|
+
def run_checks(self) -> tuple[str, Results, dict[str, int]]: ...
|
|
53
|
+
def handle_newline(self, token_type: int) -> None: ...
|
|
54
|
+
def check_physical_eol(self, token: tokenize.TokenInfo, prev_physical: str) -> None: ...
|
|
55
|
+
|
|
56
|
+
def find_offset(offset: int, mapping: _LogicalMapping) -> tuple[int, int]: ...
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
from re import Pattern
|
|
2
|
+
from typing import Final
|
|
3
|
+
|
|
4
|
+
EXCLUDE: Final[tuple[str, ...]]
|
|
5
|
+
IGNORE: Final[tuple[str, ...]]
|
|
6
|
+
MAX_LINE_LENGTH: Final = 79
|
|
7
|
+
INDENT_SIZE: Final = 4
|
|
8
|
+
WHITESPACE: Final[frozenset[str]]
|
|
9
|
+
STATISTIC_NAMES: Final[tuple[str, ...]]
|
|
10
|
+
NOQA_INLINE_REGEXP: Final[Pattern[str]]
|
|
11
|
+
NOQA_FILE: Final[Pattern[str]]
|
|
12
|
+
VALID_CODE_PREFIX: Final[Pattern[str]]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
class Flake8Exception(Exception): ...
|
|
4
|
+
class EarlyQuit(Flake8Exception): ...
|
|
5
|
+
class ExecutionError(Flake8Exception): ...
|
|
6
|
+
|
|
7
|
+
class FailedToLoadPlugin(Flake8Exception):
|
|
8
|
+
FORMAT: str
|
|
9
|
+
plugin_name: Incomplete
|
|
10
|
+
original_exception: Incomplete
|
|
11
|
+
def __init__(self, plugin_name: str, exception: Exception) -> None: ...
|
|
12
|
+
|
|
13
|
+
class PluginRequestedUnknownParameters(Flake8Exception):
|
|
14
|
+
FORMAT: str
|
|
15
|
+
plugin_name: Incomplete
|
|
16
|
+
original_exception: Incomplete
|
|
17
|
+
def __init__(self, plugin_name: str, exception: Exception) -> None: ...
|
|
18
|
+
|
|
19
|
+
class PluginExecutionFailed(Flake8Exception):
|
|
20
|
+
FORMAT: str
|
|
21
|
+
filename: Incomplete
|
|
22
|
+
plugin_name: Incomplete
|
|
23
|
+
original_exception: Incomplete
|
|
24
|
+
def __init__(self, filename: str, plugin_name: str, exception: Exception) -> None: ...
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
terminal_supports_color: bool
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import argparse
|
|
2
|
+
from _typeshed import Incomplete
|
|
3
|
+
|
|
4
|
+
from ..statistics import Statistics
|
|
5
|
+
from ..violation import Violation as Violation
|
|
6
|
+
|
|
7
|
+
class BaseFormatter:
|
|
8
|
+
options: Incomplete
|
|
9
|
+
filename: Incomplete
|
|
10
|
+
output_fd: Incomplete
|
|
11
|
+
newline: str
|
|
12
|
+
color: Incomplete
|
|
13
|
+
def __init__(self, options: argparse.Namespace) -> None: ...
|
|
14
|
+
def after_init(self) -> None: ...
|
|
15
|
+
def beginning(self, filename: str) -> None: ...
|
|
16
|
+
def finished(self, filename: str) -> None: ...
|
|
17
|
+
def start(self) -> None: ...
|
|
18
|
+
def handle(self, error: Violation) -> None: ...
|
|
19
|
+
def format(self, error: Violation) -> str | None: ...
|
|
20
|
+
def show_statistics(self, statistics: Statistics) -> None: ...
|
|
21
|
+
def show_benchmarks(self, benchmarks: list[tuple[str, float]]) -> None: ...
|
|
22
|
+
def show_source(self, error: Violation) -> str | None: ...
|
|
23
|
+
def write(self, line: str | None, source: str | None) -> None: ...
|
|
24
|
+
def stop(self) -> None: ...
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from ..violation import Violation
|
|
4
|
+
from .base import BaseFormatter
|
|
5
|
+
|
|
6
|
+
COLORS: dict[str, str]
|
|
7
|
+
COLORS_OFF: dict[str, str]
|
|
8
|
+
|
|
9
|
+
class SimpleFormatter(BaseFormatter):
|
|
10
|
+
error_format: str
|
|
11
|
+
def format(self, error: Violation) -> str | None: ...
|
|
12
|
+
|
|
13
|
+
class Default(SimpleFormatter):
|
|
14
|
+
error_format: str
|
|
15
|
+
def after_init(self) -> None: ...
|
|
16
|
+
|
|
17
|
+
class Pylint(SimpleFormatter):
|
|
18
|
+
error_format: str
|
|
19
|
+
|
|
20
|
+
class FilenameOnly(SimpleFormatter):
|
|
21
|
+
error_format: str
|
|
22
|
+
filenames_already_printed: Incomplete
|
|
23
|
+
def after_init(self) -> None: ...
|
|
24
|
+
def show_source(self, error: Violation) -> str | None: ...
|
|
25
|
+
def format(self, error: Violation) -> str | None: ...
|
|
26
|
+
|
|
27
|
+
class Nothing(BaseFormatter):
|
|
28
|
+
def format(self, error: Violation) -> str | None: ...
|
|
29
|
+
def show_source(self, error: Violation) -> str | None: ...
|
|
File without changes
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Sequence
|
|
3
|
+
from logging import Logger
|
|
4
|
+
|
|
5
|
+
LOG: Logger
|
|
6
|
+
|
|
7
|
+
class Application:
|
|
8
|
+
start_time: Incomplete
|
|
9
|
+
end_time: Incomplete
|
|
10
|
+
plugins: Incomplete
|
|
11
|
+
formatter: Incomplete
|
|
12
|
+
guide: Incomplete
|
|
13
|
+
file_checker_manager: Incomplete
|
|
14
|
+
options: Incomplete
|
|
15
|
+
result_count: int
|
|
16
|
+
total_result_count: int
|
|
17
|
+
catastrophic_failure: bool
|
|
18
|
+
def __init__(self) -> None: ...
|
|
19
|
+
def exit_code(self) -> int: ...
|
|
20
|
+
def make_formatter(self) -> None: ...
|
|
21
|
+
def make_guide(self) -> None: ...
|
|
22
|
+
def make_file_checker_manager(self, argv: Sequence[str]) -> None: ...
|
|
23
|
+
def run_checks(self) -> None: ...
|
|
24
|
+
def report_benchmarks(self) -> None: ...
|
|
25
|
+
def report_errors(self) -> None: ...
|
|
26
|
+
def report_statistics(self) -> None: ...
|
|
27
|
+
def initialize(self, argv: Sequence[str]) -> None: ...
|
|
28
|
+
def report(self) -> None: ...
|
|
29
|
+
def run(self, argv: Sequence[str]) -> None: ...
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
from argparse import ArgumentParser
|
|
2
|
+
|
|
3
|
+
from ..options.manager import OptionManager
|
|
4
|
+
|
|
5
|
+
def stage1_arg_parser() -> ArgumentParser: ...
|
|
6
|
+
|
|
7
|
+
class JobsArgument:
|
|
8
|
+
is_auto: bool
|
|
9
|
+
n_jobs: int
|
|
10
|
+
def __init__(self, arg: str) -> None: ...
|
|
11
|
+
|
|
12
|
+
def register_default_options(option_manager: OptionManager) -> None: ...
|
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import argparse
|
|
2
|
+
import configparser
|
|
3
|
+
from collections.abc import Sequence
|
|
4
|
+
from logging import Logger
|
|
5
|
+
|
|
6
|
+
from .manager import OptionManager
|
|
7
|
+
|
|
8
|
+
LOG: Logger
|
|
9
|
+
|
|
10
|
+
def aggregate_options(
|
|
11
|
+
manager: OptionManager, cfg: configparser.RawConfigParser, cfg_dir: str, argv: Sequence[str] | None
|
|
12
|
+
) -> argparse.Namespace: ...
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import configparser
|
|
2
|
+
from logging import Logger
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
from .manager import OptionManager
|
|
6
|
+
|
|
7
|
+
LOG: Logger
|
|
8
|
+
|
|
9
|
+
def load_config(config: str | None, extra: list[str], *, isolated: bool = False) -> tuple[configparser.RawConfigParser, str]: ...
|
|
10
|
+
def parse_config(option_manager: OptionManager, cfg: configparser.RawConfigParser, cfg_dir: str) -> dict[str, Any]: ...
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import argparse
|
|
2
|
+
from _typeshed import Incomplete
|
|
3
|
+
from collections.abc import Callable, Sequence
|
|
4
|
+
from enum import Enum
|
|
5
|
+
from logging import Logger
|
|
6
|
+
from typing import Any
|
|
7
|
+
|
|
8
|
+
from ..plugins.finder import Plugins
|
|
9
|
+
|
|
10
|
+
LOG: Logger
|
|
11
|
+
|
|
12
|
+
class _ARG(Enum):
|
|
13
|
+
NO = 1
|
|
14
|
+
|
|
15
|
+
class Option:
|
|
16
|
+
short_option_name: Incomplete
|
|
17
|
+
long_option_name: Incomplete
|
|
18
|
+
option_args: Incomplete
|
|
19
|
+
action: Incomplete
|
|
20
|
+
default: Incomplete
|
|
21
|
+
type: Incomplete
|
|
22
|
+
dest: Incomplete
|
|
23
|
+
nargs: Incomplete
|
|
24
|
+
const: Incomplete
|
|
25
|
+
choices: Incomplete
|
|
26
|
+
help: Incomplete
|
|
27
|
+
metavar: Incomplete
|
|
28
|
+
required: Incomplete
|
|
29
|
+
option_kwargs: Incomplete
|
|
30
|
+
parse_from_config: Incomplete
|
|
31
|
+
comma_separated_list: Incomplete
|
|
32
|
+
normalize_paths: Incomplete
|
|
33
|
+
config_name: Incomplete
|
|
34
|
+
def __init__(
|
|
35
|
+
self,
|
|
36
|
+
short_option_name: str | _ARG = ...,
|
|
37
|
+
long_option_name: str | _ARG = ...,
|
|
38
|
+
action: str | type[argparse.Action] | _ARG = ...,
|
|
39
|
+
default: Any | _ARG = ...,
|
|
40
|
+
type: Callable[..., Any] | _ARG = ...,
|
|
41
|
+
dest: str | _ARG = ...,
|
|
42
|
+
nargs: int | str | _ARG = ...,
|
|
43
|
+
const: Any | _ARG = ...,
|
|
44
|
+
choices: Sequence[Any] | _ARG = ...,
|
|
45
|
+
help: str | _ARG = ...,
|
|
46
|
+
metavar: str | _ARG = ...,
|
|
47
|
+
required: bool | _ARG = ...,
|
|
48
|
+
parse_from_config: bool = False,
|
|
49
|
+
comma_separated_list: bool = False,
|
|
50
|
+
normalize_paths: bool = False,
|
|
51
|
+
) -> None: ...
|
|
52
|
+
@property
|
|
53
|
+
def filtered_option_kwargs(self) -> dict[str, Any]: ...
|
|
54
|
+
def normalize(self, value: Any, *normalize_args: str) -> Any: ...
|
|
55
|
+
def to_argparse(self) -> tuple[list[str], dict[str, Any]]: ...
|
|
56
|
+
|
|
57
|
+
class OptionManager:
|
|
58
|
+
formatter_names: Incomplete
|
|
59
|
+
parser: Incomplete
|
|
60
|
+
config_options_dict: Incomplete
|
|
61
|
+
options: Incomplete
|
|
62
|
+
extended_default_ignore: Incomplete
|
|
63
|
+
extended_default_select: Incomplete
|
|
64
|
+
def __init__(
|
|
65
|
+
self, *, version: str, plugin_versions: str, parents: list[argparse.ArgumentParser], formatter_names: list[str]
|
|
66
|
+
) -> None: ...
|
|
67
|
+
def register_plugins(self, plugins: Plugins) -> None: ...
|
|
68
|
+
def add_option(self, *args: Any, **kwargs: Any) -> None: ...
|
|
69
|
+
def extend_default_ignore(self, error_codes: Sequence[str]) -> None: ...
|
|
70
|
+
def extend_default_select(self, error_codes: Sequence[str]) -> None: ...
|
|
71
|
+
def parse_args(self, args: Sequence[str] | None = None, values: argparse.Namespace | None = None) -> argparse.Namespace: ...
|
|
File without changes
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import configparser
|
|
2
|
+
import importlib.metadata
|
|
3
|
+
from collections.abc import Generator
|
|
4
|
+
from logging import Logger
|
|
5
|
+
from typing import Any, Final, NamedTuple
|
|
6
|
+
|
|
7
|
+
LOG: Logger
|
|
8
|
+
FLAKE8_GROUPS: Final[frozenset[str]]
|
|
9
|
+
BANNED_PLUGINS: dict[str, str]
|
|
10
|
+
|
|
11
|
+
class Plugin(NamedTuple):
|
|
12
|
+
package: str
|
|
13
|
+
version: str
|
|
14
|
+
entry_point: importlib.metadata.EntryPoint
|
|
15
|
+
|
|
16
|
+
class LoadedPlugin(NamedTuple):
|
|
17
|
+
plugin: Plugin
|
|
18
|
+
obj: Any
|
|
19
|
+
parameters: dict[str, bool]
|
|
20
|
+
@property
|
|
21
|
+
def entry_name(self) -> str: ...
|
|
22
|
+
@property
|
|
23
|
+
def display_name(self) -> str: ...
|
|
24
|
+
|
|
25
|
+
class Checkers(NamedTuple):
|
|
26
|
+
tree: list[LoadedPlugin]
|
|
27
|
+
logical_line: list[LoadedPlugin]
|
|
28
|
+
physical_line: list[LoadedPlugin]
|
|
29
|
+
|
|
30
|
+
class Plugins(NamedTuple):
|
|
31
|
+
checkers: Checkers
|
|
32
|
+
reporters: dict[str, LoadedPlugin]
|
|
33
|
+
disabled: list[LoadedPlugin]
|
|
34
|
+
def all_plugins(self) -> Generator[LoadedPlugin, None, None]: ...
|
|
35
|
+
def versions_str(self) -> str: ...
|
|
36
|
+
|
|
37
|
+
class PluginOptions(NamedTuple):
|
|
38
|
+
local_plugin_paths: tuple[str, ...]
|
|
39
|
+
enable_extensions: frozenset[str]
|
|
40
|
+
require_plugins: frozenset[str]
|
|
41
|
+
@classmethod
|
|
42
|
+
def blank(cls) -> PluginOptions: ...
|
|
43
|
+
|
|
44
|
+
def parse_plugin_options(
|
|
45
|
+
cfg: configparser.RawConfigParser, cfg_dir: str, *, enable_extensions: str | None, require_plugins: str | None
|
|
46
|
+
) -> PluginOptions: ...
|
|
47
|
+
def find_plugins(cfg: configparser.RawConfigParser, opts: PluginOptions) -> list[Plugin]: ...
|
|
48
|
+
def load_plugins(plugins: list[Plugin], opts: PluginOptions) -> Plugins: ...
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
from collections.abc import Generator
|
|
2
|
+
from typing import Any
|
|
3
|
+
|
|
4
|
+
def pycodestyle_logical(
|
|
5
|
+
blank_before: Any,
|
|
6
|
+
blank_lines: Any,
|
|
7
|
+
checker_state: Any,
|
|
8
|
+
hang_closing: Any,
|
|
9
|
+
indent_char: Any,
|
|
10
|
+
indent_level: Any,
|
|
11
|
+
indent_size: Any,
|
|
12
|
+
line_number: Any,
|
|
13
|
+
lines: Any,
|
|
14
|
+
logical_line: Any,
|
|
15
|
+
max_doc_length: Any,
|
|
16
|
+
noqa: Any,
|
|
17
|
+
previous_indent_level: Any,
|
|
18
|
+
previous_logical: Any,
|
|
19
|
+
previous_unindented_logical_line: Any,
|
|
20
|
+
tokens: Any,
|
|
21
|
+
verbose: Any,
|
|
22
|
+
) -> Generator[tuple[int, str], None, None]: ...
|
|
23
|
+
def pycodestyle_physical(
|
|
24
|
+
indent_char: Any,
|
|
25
|
+
line_number: Any,
|
|
26
|
+
lines: Any,
|
|
27
|
+
max_line_length: Any,
|
|
28
|
+
multiline: Any,
|
|
29
|
+
noqa: Any,
|
|
30
|
+
physical_line: Any,
|
|
31
|
+
total_lines: Any,
|
|
32
|
+
) -> Generator[tuple[int, str], None, None]: ...
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from argparse import Namespace
|
|
2
|
+
from ast import AST
|
|
3
|
+
from collections.abc import Generator
|
|
4
|
+
from logging import Logger
|
|
5
|
+
from typing import Any
|
|
6
|
+
|
|
7
|
+
from pyflakes.checker import Checker
|
|
8
|
+
|
|
9
|
+
from ..options.manager import OptionManager
|
|
10
|
+
|
|
11
|
+
LOG: Logger
|
|
12
|
+
FLAKE8_PYFLAKES_CODES: dict[str, str]
|
|
13
|
+
|
|
14
|
+
class FlakesChecker(Checker):
|
|
15
|
+
with_doctest: bool
|
|
16
|
+
def __init__(self, tree: AST, filename: str) -> None: ...
|
|
17
|
+
@classmethod
|
|
18
|
+
def add_options(cls, parser: OptionManager) -> None: ...
|
|
19
|
+
@classmethod
|
|
20
|
+
def parse_options(cls, options: Namespace) -> None: ...
|
|
21
|
+
def run(self) -> Generator[tuple[int, int, str, type[Any]], None, None]: ...
|