basedpyright 1.16.0 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/_ast.pyi +5 -3
- package/dist/typeshed-fallback/stdlib/_collections_abc.pyi +6 -3
- package/dist/typeshed-fallback/stdlib/_ctypes.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/_operator.pyi +5 -1
- package/dist/typeshed-fallback/stdlib/_stat.pyi +6 -6
- package/dist/typeshed-fallback/stdlib/_tkinter.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/argparse.pyi +11 -1
- package/dist/typeshed-fallback/stdlib/array.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/ast.pyi +18 -17
- package/dist/typeshed-fallback/stdlib/builtins.pyi +7 -5
- package/dist/typeshed-fallback/stdlib/cmd.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/collections/__init__.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/contextlib.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/crypt.pyi +6 -5
- package/dist/typeshed-fallback/stdlib/dataclasses.pyi +5 -1
- package/dist/typeshed-fallback/stdlib/datetime.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/distutils/cmd.pyi +120 -0
- package/dist/typeshed-fallback/stdlib/distutils/command/__init__.pyi +48 -0
- package/dist/typeshed-fallback/stdlib/distutils/command/check.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/distutils/command/config.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/distutils/command/install.pyi +9 -4
- package/dist/typeshed-fallback/stdlib/distutils/command/install_lib.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/distutils/core.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/distutils/cygwinccompiler.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/distutils/debug.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/distutils/dist.pyi +149 -4
- package/dist/typeshed-fallback/stdlib/distutils/fancy_getopt.pyi +6 -6
- package/dist/typeshed-fallback/stdlib/distutils/log.pyi +6 -6
- package/dist/typeshed-fallback/stdlib/distutils/sysconfig.pyi +7 -7
- package/dist/typeshed-fallback/stdlib/email/message.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/email/utils.pyi +4 -1
- package/dist/typeshed-fallback/stdlib/filecmp.pyi +18 -7
- package/dist/typeshed-fallback/stdlib/ftplib.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/json/encoder.pyi +6 -6
- package/dist/typeshed-fallback/stdlib/logging/__init__.pyi +31 -36
- package/dist/typeshed-fallback/stdlib/marshal.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/math.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/operator.pyi +3 -0
- package/dist/typeshed-fallback/stdlib/os/__init__.pyi +4 -2
- package/dist/typeshed-fallback/stdlib/pathlib.pyi +24 -2
- package/dist/typeshed-fallback/stdlib/poplib.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/pty.pyi +8 -3
- package/dist/typeshed-fallback/stdlib/pyexpat/__init__.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/pyexpat/errors.pyi +45 -43
- package/dist/typeshed-fallback/stdlib/pyexpat/model.pyi +12 -10
- package/dist/typeshed-fallback/stdlib/select.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/signal.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/sqlite3/dbapi2.pyi +8 -2
- package/dist/typeshed-fallback/stdlib/tarfile.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/time.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/tkinter/__init__.pyi +28 -4
- package/dist/typeshed-fallback/stdlib/tkinter/constants.pyi +6 -6
- package/dist/typeshed-fallback/stdlib/tkinter/dialog.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/tkinter/messagebox.pyi +17 -17
- package/dist/typeshed-fallback/stdlib/tkinter/ttk.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/typing.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/urllib/request.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/zipfile/__init__.pyi +78 -3
- package/dist/typeshed-fallback/stdlib/zipfile/_path.pyi +1 -0
- package/dist/typeshed-fallback/stubs/JACK-Client/METADATA.toml +3 -1
- package/dist/typeshed-fallback/stubs/cachetools/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/cachetools/cachetools/__init__.pyi +2 -2
- package/dist/typeshed-fallback/stubs/corus/METADATA.toml +2 -0
- package/dist/typeshed-fallback/stubs/corus/corus/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/corus/corus/io.pyi +21 -0
- package/dist/typeshed-fallback/stubs/corus/corus/readme.pyi +17 -0
- package/dist/typeshed-fallback/stubs/corus/corus/record.pyi +8 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/__init__.pyi +23 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/bsnlp.pyi +75 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/buriy.pyi +18 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/corpora.pyi +50 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/factru.pyi +74 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/gareev.pyi +21 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/gramru.pyi +1 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/lenta.pyi +19 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/librusec.pyi +14 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/meta.pyi +54 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/mokoron.pyi +28 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/morphoru.pyi +24 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/ne5.pyi +28 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/ods.pyi +46 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/omnia.pyi +49 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/persons.pyi +27 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/ria.pyi +21 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/rudrec.pyi +27 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/russe.pyi +16 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/simlex.pyi +14 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/__init__.pyi +10 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/arzamas.pyi +6 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/common.pyi +77 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/fontanka.pyi +6 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/interfax.pyi +6 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/kp.pyi +6 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/lenta.pyi +6 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/magazines.pyi +6 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/nplus1.pyi +6 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/proza.pyi +8 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/social.pyi +15 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/subtitles.pyi +6 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/toloka.pyi +28 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/ud.pyi +29 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/wiki.pyi +20 -0
- package/dist/typeshed-fallback/stubs/corus/corus/sources/wikiner.pyi +19 -0
- package/dist/typeshed-fallback/stubs/corus/corus/third/WikiExtractor.pyi +227 -0
- package/dist/typeshed-fallback/stubs/corus/corus/third/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/corus/corus/zip.pyi +28 -0
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/drawing.pyi +2 -2
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/fpdf.pyi +1 -1
- package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/client.pyi +2 -2
- package/dist/typeshed-fallback/stubs/influxdb-client/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/jsonschema/jsonschema/validators.pyi +1 -1
- package/dist/typeshed-fallback/stubs/networkx/METADATA.toml +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/digraph.pyi +14 -14
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/graph.pyi +15 -9
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/multidigraph.pyi +17 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/multigraph.pyi +4 -0
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/cell/__init__.pyi +2 -0
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/chart/series.pyi +3 -1
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/worksheet/_reader.pyi +4 -5
- package/dist/typeshed-fallback/stubs/passlib/passlib/utils/handlers.pyi +6 -2
- package/dist/typeshed-fallback/stubs/peewee/peewee.pyi +1 -1
- package/dist/typeshed-fallback/stubs/polib/polib.pyi +4 -2
- package/dist/typeshed-fallback/stubs/psycopg2/psycopg2/_psycopg.pyi +1 -1
- package/dist/typeshed-fallback/stubs/pyflakes/pyflakes/checker.pyi +2 -2
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/utils.pyi +2 -2
- package/dist/typeshed-fallback/stubs/pyinstaller/METADATA.toml +1 -5
- package/dist/typeshed-fallback/stubs/pyinstaller/PyInstaller/building/splash.pyi +0 -1
- package/dist/typeshed-fallback/stubs/pyinstaller/PyInstaller/compat.pyi +2 -0
- package/dist/typeshed-fallback/stubs/pynput/pynput/keyboard/_base.pyi +2 -2
- package/dist/typeshed-fallback/stubs/redis/redis/client.pyi +24 -8
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/platypus/doctemplate.pyi +7 -1
- package/dist/typeshed-fallback/stubs/seaborn/METADATA.toml +3 -1
- package/dist/typeshed-fallback/stubs/seaborn/seaborn/_core/plot.pyi +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/__init__.pyi +136 -4
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/cmd.pyi +2 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/dist.pyi +6 -4
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/sysconfig.pyi +3 -3
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/dist.pyi +185 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/wheel.pyi +1 -1
- package/dist/typeshed-fallback/stubs/shapely/METADATA.toml +3 -1
- package/package.json +1 -1
- package/dist/typeshed-fallback/stubs/flake8-2020/METADATA.toml +0 -2
- package/dist/typeshed-fallback/stubs/flake8-2020/flake8_2020.pyi +0 -26
- package/dist/typeshed-fallback/stubs/paho-mqtt/METADATA.toml +0 -3
- package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/__init__.pyi +0 -1
- package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/client.pyi +0 -331
- package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/matcher.pyi +0 -11
- package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/packettypes.pyi +0 -19
- package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/properties.pyi +0 -38
- package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/publish.pyi +0 -63
- package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/reasoncodes.pyi +0 -13
- package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/subscribe.pyi +0 -39
- package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/subscribeoptions.pyi +0 -24
- package/dist/typeshed-fallback/stubs/python-slugify/METADATA.toml +0 -3
- package/dist/typeshed-fallback/stubs/python-slugify/slugify/__init__.pyi +0 -12
- package/dist/typeshed-fallback/stubs/python-slugify/slugify/__version__.pyi +0 -8
- package/dist/typeshed-fallback/stubs/python-slugify/slugify/slugify.pyi +0 -20
- package/dist/typeshed-fallback/stubs/python-slugify/slugify/special.pyi +0 -8
- /package/dist/typeshed-fallback/stubs/{paho-mqtt/paho/__init__.pyi → corus/corus/path.pyi} +0 -0
|
@@ -1,8 +1,35 @@
|
|
|
1
1
|
from _typeshed import Incomplete, StrPath
|
|
2
2
|
from collections.abc import Iterable, Iterator, MutableMapping
|
|
3
|
+
from typing import Literal, TypeVar, overload
|
|
3
4
|
|
|
4
5
|
from . import Command, SetuptoolsDeprecationWarning
|
|
5
6
|
from ._distutils.dist import Distribution as _Distribution
|
|
7
|
+
from .command.alias import alias
|
|
8
|
+
from .command.bdist_egg import bdist_egg
|
|
9
|
+
from .command.bdist_rpm import bdist_rpm
|
|
10
|
+
from .command.bdist_wheel import bdist_wheel
|
|
11
|
+
from .command.build import build
|
|
12
|
+
from .command.build_clib import build_clib
|
|
13
|
+
from .command.build_ext import build_ext
|
|
14
|
+
from .command.build_py import build_py
|
|
15
|
+
from .command.develop import develop
|
|
16
|
+
from .command.dist_info import dist_info
|
|
17
|
+
from .command.easy_install import easy_install
|
|
18
|
+
from .command.editable_wheel import editable_wheel
|
|
19
|
+
from .command.egg_info import egg_info
|
|
20
|
+
from .command.install import install
|
|
21
|
+
from .command.install_egg_info import install_egg_info
|
|
22
|
+
from .command.install_lib import install_lib
|
|
23
|
+
from .command.install_scripts import install_scripts
|
|
24
|
+
from .command.register import register
|
|
25
|
+
from .command.rotate import rotate
|
|
26
|
+
from .command.saveopts import saveopts
|
|
27
|
+
from .command.sdist import sdist
|
|
28
|
+
from .command.setopt import setopt
|
|
29
|
+
from .command.upload import upload
|
|
30
|
+
from .command.upload_docs import upload_docs
|
|
31
|
+
|
|
32
|
+
_CommandT = TypeVar("_CommandT", bound=Command)
|
|
6
33
|
|
|
7
34
|
__all__ = ["Distribution"]
|
|
8
35
|
|
|
@@ -17,7 +44,165 @@ class Distribution(_Distribution):
|
|
|
17
44
|
def fetch_build_eggs(self, requires: str | Iterable[str]): ...
|
|
18
45
|
def get_egg_cache_dir(self) -> str: ...
|
|
19
46
|
def fetch_build_egg(self, req): ...
|
|
47
|
+
# NOTE: Commands that setuptools doesn't re-expose are considered deprecated (they must be imported from distutils directly)
|
|
48
|
+
# So we're not listing them here. This list comes directly from the setuptools/command folder. Minus the test command.
|
|
49
|
+
@overload # type: ignore[override]
|
|
50
|
+
def get_command_obj(self, command: Literal["alias"], create: Literal[1, True] = 1) -> alias: ...
|
|
51
|
+
@overload
|
|
52
|
+
def get_command_obj(self, command: Literal["bdist_egg"], create: Literal[1, True] = 1) -> bdist_egg: ...
|
|
53
|
+
@overload
|
|
54
|
+
def get_command_obj(self, command: Literal["bdist_rpm"], create: Literal[1, True] = 1) -> bdist_rpm: ... # type: ignore[overload-overlap]
|
|
55
|
+
@overload
|
|
56
|
+
def get_command_obj(self, command: Literal["bdist_wheel"], create: Literal[1, True] = 1) -> bdist_wheel: ...
|
|
57
|
+
@overload
|
|
58
|
+
def get_command_obj(self, command: Literal["build"], create: Literal[1, True] = 1) -> build: ... # type: ignore[overload-overlap]
|
|
59
|
+
@overload
|
|
60
|
+
def get_command_obj(self, command: Literal["build_clib"], create: Literal[1, True] = 1) -> build_clib: ... # type: ignore[overload-overlap]
|
|
61
|
+
@overload
|
|
62
|
+
def get_command_obj(self, command: Literal["build_ext"], create: Literal[1, True] = 1) -> build_ext: ... # type: ignore[overload-overlap]
|
|
63
|
+
@overload
|
|
64
|
+
def get_command_obj(self, command: Literal["build_py"], create: Literal[1, True] = 1) -> build_py: ... # type: ignore[overload-overlap]
|
|
65
|
+
@overload
|
|
66
|
+
def get_command_obj(self, command: Literal["develop"], create: Literal[1, True] = 1) -> develop: ...
|
|
67
|
+
@overload
|
|
68
|
+
def get_command_obj(self, command: Literal["dist_info"], create: Literal[1, True] = 1) -> dist_info: ... # type: ignore[overload-overlap]
|
|
69
|
+
@overload
|
|
70
|
+
def get_command_obj(self, command: Literal["easy_install"], create: Literal[1, True] = 1) -> easy_install: ...
|
|
71
|
+
@overload
|
|
72
|
+
def get_command_obj(self, command: Literal["editable_wheel"], create: Literal[1, True] = 1) -> editable_wheel: ...
|
|
73
|
+
@overload
|
|
74
|
+
def get_command_obj(self, command: Literal["egg_info"], create: Literal[1, True] = 1) -> egg_info: ...
|
|
75
|
+
@overload
|
|
76
|
+
def get_command_obj(self, command: Literal["install"], create: Literal[1, True] = 1) -> install: ... # type: ignore[overload-overlap]
|
|
77
|
+
@overload
|
|
78
|
+
def get_command_obj(self, command: Literal["install_egg_info"], create: Literal[1, True] = 1) -> install_egg_info: ...
|
|
79
|
+
@overload
|
|
80
|
+
def get_command_obj(self, command: Literal["install_lib"], create: Literal[1, True] = 1) -> install_lib: ... # type: ignore[overload-overlap]
|
|
81
|
+
@overload
|
|
82
|
+
def get_command_obj(self, command: Literal["install_scripts"], create: Literal[1, True] = 1) -> install_scripts: ... # type: ignore[overload-overlap]
|
|
83
|
+
@overload
|
|
84
|
+
def get_command_obj(self, command: Literal["register"], create: Literal[1, True] = 1) -> register: ... # type: ignore[overload-overlap]
|
|
85
|
+
@overload
|
|
86
|
+
def get_command_obj(self, command: Literal["rotate"], create: Literal[1, True] = 1) -> rotate: ...
|
|
87
|
+
@overload
|
|
88
|
+
def get_command_obj(self, command: Literal["saveopts"], create: Literal[1, True] = 1) -> saveopts: ...
|
|
89
|
+
@overload
|
|
90
|
+
def get_command_obj(self, command: Literal["sdist"], create: Literal[1, True] = 1) -> sdist: ... # type: ignore[overload-overlap]
|
|
91
|
+
@overload
|
|
92
|
+
def get_command_obj(self, command: Literal["setopt"], create: Literal[1, True] = 1) -> setopt: ...
|
|
93
|
+
@overload
|
|
94
|
+
def get_command_obj(self, command: Literal["upload"], create: Literal[1, True] = 1) -> upload: ... # type: ignore[overload-overlap]
|
|
95
|
+
@overload
|
|
96
|
+
def get_command_obj(self, command: Literal["upload_docs"], create: Literal[1, True] = 1) -> upload_docs: ... # type: ignore[overload-overlap]
|
|
97
|
+
@overload
|
|
98
|
+
def get_command_obj(self, command: str, create: Literal[1, True] = 1) -> Command: ...
|
|
99
|
+
# Not replicating the overloads for "Command | None", user may use "isinstance"
|
|
100
|
+
@overload
|
|
101
|
+
def get_command_obj(self, command: str, create: Literal[0, False]) -> Command | None: ...
|
|
102
|
+
@overload
|
|
103
|
+
def get_command_class(self, command: Literal["alias"]) -> type[alias]: ...
|
|
104
|
+
@overload
|
|
105
|
+
def get_command_class(self, command: Literal["bdist_egg"]) -> type[bdist_egg]: ...
|
|
106
|
+
@overload
|
|
107
|
+
def get_command_class(self, command: Literal["bdist_rpm"]) -> type[bdist_rpm]: ... # type: ignore[overload-overlap]
|
|
108
|
+
@overload
|
|
109
|
+
def get_command_class(self, command: Literal["bdist_wheel"]) -> type[bdist_wheel]: ...
|
|
110
|
+
@overload
|
|
111
|
+
def get_command_class(self, command: Literal["build"]) -> type[build]: ... # type: ignore[overload-overlap]
|
|
112
|
+
@overload
|
|
113
|
+
def get_command_class(self, command: Literal["build_clib"]) -> type[build_clib]: ... # type: ignore[overload-overlap]
|
|
114
|
+
@overload
|
|
115
|
+
def get_command_class(self, command: Literal["build_ext"]) -> type[build_ext]: ... # type: ignore[overload-overlap]
|
|
116
|
+
@overload
|
|
117
|
+
def get_command_class(self, command: Literal["build_py"]) -> type[build_py]: ... # type: ignore[overload-overlap]
|
|
118
|
+
@overload
|
|
119
|
+
def get_command_class(self, command: Literal["develop"]) -> type[develop]: ...
|
|
120
|
+
@overload
|
|
121
|
+
def get_command_class(self, command: Literal["dist_info"]) -> type[dist_info]: ... # type: ignore[overload-overlap]
|
|
122
|
+
@overload
|
|
123
|
+
def get_command_class(self, command: Literal["easy_install"]) -> type[easy_install]: ...
|
|
124
|
+
@overload
|
|
125
|
+
def get_command_class(self, command: Literal["editable_wheel"]) -> type[editable_wheel]: ...
|
|
126
|
+
@overload
|
|
127
|
+
def get_command_class(self, command: Literal["egg_info"]) -> type[egg_info]: ...
|
|
128
|
+
@overload
|
|
129
|
+
def get_command_class(self, command: Literal["install"]) -> type[install]: ... # type: ignore[overload-overlap]
|
|
130
|
+
@overload
|
|
131
|
+
def get_command_class(self, command: Literal["install_egg_info"]) -> type[install_egg_info]: ...
|
|
132
|
+
@overload
|
|
133
|
+
def get_command_class(self, command: Literal["install_lib"]) -> type[install_lib]: ... # type: ignore[overload-overlap]
|
|
134
|
+
@overload
|
|
135
|
+
def get_command_class(self, command: Literal["install_scripts"]) -> type[install_scripts]: ... # type: ignore[overload-overlap]
|
|
136
|
+
@overload
|
|
137
|
+
def get_command_class(self, command: Literal["register"]) -> type[register]: ... # type: ignore[overload-overlap]
|
|
138
|
+
@overload
|
|
139
|
+
def get_command_class(self, command: Literal["rotate"]) -> type[rotate]: ...
|
|
140
|
+
@overload
|
|
141
|
+
def get_command_class(self, command: Literal["saveopts"]) -> type[saveopts]: ...
|
|
142
|
+
@overload
|
|
143
|
+
def get_command_class(self, command: Literal["sdist"]) -> type[sdist]: ... # type: ignore[overload-overlap]
|
|
144
|
+
@overload
|
|
145
|
+
def get_command_class(self, command: Literal["setopt"]) -> type[setopt]: ...
|
|
146
|
+
@overload
|
|
147
|
+
def get_command_class(self, command: Literal["upload"]) -> type[upload]: ... # type: ignore[overload-overlap]
|
|
148
|
+
@overload
|
|
149
|
+
def get_command_class(self, command: Literal["upload_docs"]) -> type[upload_docs]: ... # type: ignore[overload-overlap]
|
|
150
|
+
@overload
|
|
20
151
|
def get_command_class(self, command: str) -> type[Command]: ...
|
|
152
|
+
@overload # type: ignore[override]
|
|
153
|
+
def reinitialize_command(self, command: Literal["alias"], reinit_subcommands: bool = False) -> alias: ...
|
|
154
|
+
@overload
|
|
155
|
+
def reinitialize_command(self, command: Literal["bdist_egg"], reinit_subcommands: bool = False) -> bdist_egg: ...
|
|
156
|
+
@overload
|
|
157
|
+
def reinitialize_command(self, command: Literal["bdist_rpm"], reinit_subcommands: bool = False) -> bdist_rpm: ... # type: ignore[overload-overlap]
|
|
158
|
+
@overload
|
|
159
|
+
def reinitialize_command(self, command: Literal["bdist_wheel"], reinit_subcommands: bool = False) -> bdist_wheel: ...
|
|
160
|
+
@overload
|
|
161
|
+
def reinitialize_command(self, command: Literal["build"], reinit_subcommands: bool = False) -> build: ... # type: ignore[overload-overlap]
|
|
162
|
+
@overload
|
|
163
|
+
def reinitialize_command(self, command: Literal["build_clib"], reinit_subcommands: bool = False) -> build_clib: ... # type: ignore[overload-overlap]
|
|
164
|
+
@overload
|
|
165
|
+
def reinitialize_command(self, command: Literal["build_ext"], reinit_subcommands: bool = False) -> build_ext: ... # type: ignore[overload-overlap]
|
|
166
|
+
@overload
|
|
167
|
+
def reinitialize_command(self, command: Literal["build_py"], reinit_subcommands: bool = False) -> build_py: ... # type: ignore[overload-overlap]
|
|
168
|
+
@overload
|
|
169
|
+
def reinitialize_command(self, command: Literal["develop"], reinit_subcommands: bool = False) -> develop: ...
|
|
170
|
+
@overload
|
|
171
|
+
def reinitialize_command(self, command: Literal["dist_info"], reinit_subcommands: bool = False) -> dist_info: ... # type: ignore[overload-overlap]
|
|
172
|
+
@overload
|
|
173
|
+
def reinitialize_command(self, command: Literal["easy_install"], reinit_subcommands: bool = False) -> easy_install: ...
|
|
174
|
+
@overload
|
|
175
|
+
def reinitialize_command(self, command: Literal["editable_wheel"], reinit_subcommands: bool = False) -> editable_wheel: ...
|
|
176
|
+
@overload
|
|
177
|
+
def reinitialize_command(self, command: Literal["egg_info"], reinit_subcommands: bool = False) -> egg_info: ...
|
|
178
|
+
@overload
|
|
179
|
+
def reinitialize_command(self, command: Literal["install"], reinit_subcommands: bool = False) -> install: ... # type: ignore[overload-overlap]
|
|
180
|
+
@overload
|
|
181
|
+
def reinitialize_command(
|
|
182
|
+
self, command: Literal["install_egg_info"], reinit_subcommands: bool = False
|
|
183
|
+
) -> install_egg_info: ...
|
|
184
|
+
@overload
|
|
185
|
+
def reinitialize_command(self, command: Literal["install_lib"], reinit_subcommands: bool = False) -> install_lib: ... # type: ignore[overload-overlap]
|
|
186
|
+
@overload
|
|
187
|
+
def reinitialize_command(self, command: Literal["install_scripts"], reinit_subcommands: bool = False) -> install_scripts: ... # type: ignore[overload-overlap]
|
|
188
|
+
@overload
|
|
189
|
+
def reinitialize_command(self, command: Literal["register"], reinit_subcommands: bool = False) -> register: ... # type: ignore[overload-overlap]
|
|
190
|
+
@overload
|
|
191
|
+
def reinitialize_command(self, command: Literal["rotate"], reinit_subcommands: bool = False) -> rotate: ...
|
|
192
|
+
@overload
|
|
193
|
+
def reinitialize_command(self, command: Literal["saveopts"], reinit_subcommands: bool = False) -> saveopts: ...
|
|
194
|
+
@overload
|
|
195
|
+
def reinitialize_command(self, command: Literal["sdist"], reinit_subcommands: bool = False) -> sdist: ... # type: ignore[overload-overlap]
|
|
196
|
+
@overload
|
|
197
|
+
def reinitialize_command(self, command: Literal["setopt"], reinit_subcommands: bool = False) -> setopt: ...
|
|
198
|
+
@overload
|
|
199
|
+
def reinitialize_command(self, command: Literal["upload"], reinit_subcommands: bool = False) -> upload: ... # type: ignore[overload-overlap]
|
|
200
|
+
@overload
|
|
201
|
+
def reinitialize_command(self, command: Literal["upload_docs"], reinit_subcommands: bool = False) -> upload_docs: ... # type: ignore[overload-overlap]
|
|
202
|
+
@overload
|
|
203
|
+
def reinitialize_command(self, command: str, reinit_subcommands: bool = False) -> Command: ...
|
|
204
|
+
@overload
|
|
205
|
+
def reinitialize_command(self, command: _CommandT, reinit_subcommands: bool = False) -> _CommandT: ...
|
|
21
206
|
def include(self, **attrs) -> None: ...
|
|
22
207
|
def exclude_package(self, package: str) -> None: ...
|
|
23
208
|
def has_contents_for(self, package: str) -> bool | None: ...
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
version = "2.0.*"
|
|
2
2
|
# Requires a version of numpy with a `py.typed` file
|
|
3
|
-
|
|
3
|
+
# see https://github.com/python/typeshed/issues/12551
|
|
4
|
+
# on why we need the upper bound for numpy
|
|
5
|
+
requires = ["numpy>=1.20,<2.1.0"]
|
|
4
6
|
upstream_repository = "https://github.com/shapely/shapely"
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "basedpyright",
|
|
3
3
|
"displayName": "basedpyright",
|
|
4
4
|
"description": "a pyright fork with various type checking improvements, improved vscode support and pylance features built into the language server",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.17.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "detachhead"
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# flake8-2020 has type annotations, but PEP 561 states:
|
|
2
|
-
# This PEP does not support distributing typing information as part of module-only distributions or single-file modules within namespace packages.
|
|
3
|
-
# Therefore typeshed is the best place.
|
|
4
|
-
|
|
5
|
-
import ast
|
|
6
|
-
from collections.abc import Generator
|
|
7
|
-
from typing import Any, ClassVar
|
|
8
|
-
|
|
9
|
-
YTT101: str
|
|
10
|
-
YTT102: str
|
|
11
|
-
YTT103: str
|
|
12
|
-
YTT201: str
|
|
13
|
-
YTT202: str
|
|
14
|
-
YTT203: str
|
|
15
|
-
YTT204: str
|
|
16
|
-
YTT301: str
|
|
17
|
-
YTT302: str
|
|
18
|
-
YTT303: str
|
|
19
|
-
|
|
20
|
-
class Visitor(ast.NodeVisitor): ...
|
|
21
|
-
|
|
22
|
-
class Plugin:
|
|
23
|
-
name: ClassVar[str]
|
|
24
|
-
version: ClassVar[str]
|
|
25
|
-
def __init__(self, tree: ast.AST) -> None: ...
|
|
26
|
-
def run(self) -> Generator[tuple[int, int, str, type[Any]], None, None]: ...
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
class MQTTException(Exception): ...
|
|
@@ -1,331 +0,0 @@
|
|
|
1
|
-
import logging
|
|
2
|
-
import socket as _socket
|
|
3
|
-
import ssl as _ssl
|
|
4
|
-
import time
|
|
5
|
-
import types
|
|
6
|
-
from _typeshed import Incomplete, Unused
|
|
7
|
-
from collections.abc import Callable
|
|
8
|
-
from typing import Any, TypeVar
|
|
9
|
-
from typing_extensions import TypeAlias
|
|
10
|
-
|
|
11
|
-
from .matcher import MQTTMatcher as MQTTMatcher
|
|
12
|
-
from .properties import Properties as Properties
|
|
13
|
-
from .reasoncodes import ReasonCodes as ReasonCodes
|
|
14
|
-
from .subscribeoptions import SubscribeOptions as SubscribeOptions
|
|
15
|
-
|
|
16
|
-
ssl: types.ModuleType | None
|
|
17
|
-
socks: types.ModuleType | None
|
|
18
|
-
time_func = time.monotonic
|
|
19
|
-
HAVE_DNS: bool
|
|
20
|
-
EAGAIN: int | Incomplete
|
|
21
|
-
MQTTv31: int
|
|
22
|
-
MQTTv311: int
|
|
23
|
-
MQTTv5: int
|
|
24
|
-
unicode = str
|
|
25
|
-
basestring = str
|
|
26
|
-
CONNECT: int
|
|
27
|
-
CONNACK: int
|
|
28
|
-
PUBLISH: int
|
|
29
|
-
PUBACK: int
|
|
30
|
-
PUBREC: int
|
|
31
|
-
PUBREL: int
|
|
32
|
-
PUBCOMP: int
|
|
33
|
-
SUBSCRIBE: int
|
|
34
|
-
SUBACK: int
|
|
35
|
-
UNSUBSCRIBE: int
|
|
36
|
-
UNSUBACK: int
|
|
37
|
-
PINGREQ: int
|
|
38
|
-
PINGRESP: int
|
|
39
|
-
DISCONNECT: int
|
|
40
|
-
AUTH: int
|
|
41
|
-
MQTT_LOG_INFO: int
|
|
42
|
-
MQTT_LOG_NOTICE: int
|
|
43
|
-
MQTT_LOG_WARNING: int
|
|
44
|
-
MQTT_LOG_ERR: int
|
|
45
|
-
MQTT_LOG_DEBUG: int
|
|
46
|
-
LOGGING_LEVEL: dict[int, int]
|
|
47
|
-
CONNACK_ACCEPTED: int
|
|
48
|
-
CONNACK_REFUSED_PROTOCOL_VERSION: int
|
|
49
|
-
CONNACK_REFUSED_IDENTIFIER_REJECTED: int
|
|
50
|
-
CONNACK_REFUSED_SERVER_UNAVAILABLE: int
|
|
51
|
-
CONNACK_REFUSED_BAD_USERNAME_PASSWORD: int
|
|
52
|
-
CONNACK_REFUSED_NOT_AUTHORIZED: int
|
|
53
|
-
mqtt_cs_new: int
|
|
54
|
-
mqtt_cs_connected: int
|
|
55
|
-
mqtt_cs_disconnecting: int
|
|
56
|
-
mqtt_cs_connect_async: int
|
|
57
|
-
mqtt_ms_invalid: int
|
|
58
|
-
mqtt_ms_publish: int
|
|
59
|
-
mqtt_ms_wait_for_puback: int
|
|
60
|
-
mqtt_ms_wait_for_pubrec: int
|
|
61
|
-
mqtt_ms_resend_pubrel: int
|
|
62
|
-
mqtt_ms_wait_for_pubrel: int
|
|
63
|
-
mqtt_ms_resend_pubcomp: int
|
|
64
|
-
mqtt_ms_wait_for_pubcomp: int
|
|
65
|
-
mqtt_ms_send_pubrec: int
|
|
66
|
-
mqtt_ms_queued: int
|
|
67
|
-
MQTT_ERR_AGAIN: int
|
|
68
|
-
MQTT_ERR_SUCCESS: int
|
|
69
|
-
MQTT_ERR_NOMEM: int
|
|
70
|
-
MQTT_ERR_PROTOCOL: int
|
|
71
|
-
MQTT_ERR_INVAL: int
|
|
72
|
-
MQTT_ERR_NO_CONN: int
|
|
73
|
-
MQTT_ERR_CONN_REFUSED: int
|
|
74
|
-
MQTT_ERR_NOT_FOUND: int
|
|
75
|
-
MQTT_ERR_CONN_LOST: int
|
|
76
|
-
MQTT_ERR_TLS: int
|
|
77
|
-
MQTT_ERR_PAYLOAD_SIZE: int
|
|
78
|
-
MQTT_ERR_NOT_SUPPORTED: int
|
|
79
|
-
MQTT_ERR_AUTH: int
|
|
80
|
-
MQTT_ERR_ACL_DENIED: int
|
|
81
|
-
MQTT_ERR_UNKNOWN: int
|
|
82
|
-
MQTT_ERR_ERRNO: int
|
|
83
|
-
MQTT_ERR_QUEUE_SIZE: int
|
|
84
|
-
MQTT_ERR_KEEPALIVE: int
|
|
85
|
-
MQTT_CLIENT: int
|
|
86
|
-
MQTT_BRIDGE: int
|
|
87
|
-
MQTT_CLEAN_START_FIRST_ONLY: int
|
|
88
|
-
sockpair_data: bytes
|
|
89
|
-
_UserData: TypeAlias = Any
|
|
90
|
-
_Socket: TypeAlias = _socket.socket | _ssl.SSLSocket | Incomplete
|
|
91
|
-
_Payload: TypeAlias = str | bytes | bytearray | float
|
|
92
|
-
_ExtraHeader: TypeAlias = dict[str, str] | Callable[[dict[str, str]], dict[str, str]]
|
|
93
|
-
_OnLog: TypeAlias = Callable[[Client, _UserData, int, str], object]
|
|
94
|
-
_OnConnect: TypeAlias = Callable[[Client, _UserData, dict[str, int], int], object]
|
|
95
|
-
_OnConnectV5: TypeAlias = Callable[[Client, _UserData, dict[str, int], ReasonCodes, Properties | None], object]
|
|
96
|
-
_TOnConnect = TypeVar("_TOnConnect", _OnConnect, _OnConnectV5)
|
|
97
|
-
_OnConnectFail: TypeAlias = Callable[[Client, _UserData], object]
|
|
98
|
-
_OnSubscribe: TypeAlias = Callable[[Client, _UserData, int, tuple[int]], object]
|
|
99
|
-
_OnSubscribeV5: TypeAlias = Callable[[Client, _UserData, int, list[ReasonCodes], Properties], object]
|
|
100
|
-
_TOnSubscribe = TypeVar("_TOnSubscribe", _OnSubscribe, _OnSubscribeV5)
|
|
101
|
-
_OnMessage: TypeAlias = Callable[[Client, _UserData, MQTTMessage], object]
|
|
102
|
-
_OnPublish: TypeAlias = Callable[[Client, _UserData, int], object]
|
|
103
|
-
_OnUnsubscribe: TypeAlias = Callable[[Client, _UserData, int], object]
|
|
104
|
-
_OnUnsubscribeV5: TypeAlias = Callable[[Client, _UserData, int, Properties, list[ReasonCodes] | ReasonCodes], object]
|
|
105
|
-
_TOnUnsubscribe = TypeVar("_TOnUnsubscribe", _OnUnsubscribe, _OnUnsubscribeV5)
|
|
106
|
-
_OnDisconnect: TypeAlias = Callable[[Client, _UserData, int], object]
|
|
107
|
-
_OnDisconnectV5: TypeAlias = Callable[[Client, _UserData, ReasonCodes | None, Properties | None], object]
|
|
108
|
-
_TOnDisconnect = TypeVar("_TOnDisconnect", _OnDisconnect, _OnDisconnectV5)
|
|
109
|
-
_OnSocket: TypeAlias = Callable[[Client, _UserData, _Socket | WebsocketWrapper | None], object]
|
|
110
|
-
|
|
111
|
-
class WebsocketConnectionError(ValueError): ...
|
|
112
|
-
|
|
113
|
-
def error_string(mqtt_errno: int) -> str: ...
|
|
114
|
-
def connack_string(connack_code: int) -> str: ...
|
|
115
|
-
def base62(num: int, base: str = ..., padding: int = 1) -> str: ...
|
|
116
|
-
def topic_matches_sub(sub: str, topic: str) -> bool: ...
|
|
117
|
-
|
|
118
|
-
class MQTTMessageInfo:
|
|
119
|
-
mid: int
|
|
120
|
-
rc: int
|
|
121
|
-
def __init__(self, mid: int) -> None: ...
|
|
122
|
-
def __iter__(self) -> MQTTMessageInfo: ...
|
|
123
|
-
def __next__(self) -> int: ...
|
|
124
|
-
def next(self) -> int: ...
|
|
125
|
-
def __getitem__(self, index: int) -> int: ...
|
|
126
|
-
def wait_for_publish(self, timeout: float | None = None) -> None: ...
|
|
127
|
-
def is_published(self) -> bool: ...
|
|
128
|
-
|
|
129
|
-
class MQTTMessage:
|
|
130
|
-
timestamp: int
|
|
131
|
-
state: int
|
|
132
|
-
dup: bool
|
|
133
|
-
mid: int
|
|
134
|
-
payload: bytes | bytearray
|
|
135
|
-
qos: int
|
|
136
|
-
retain: bool
|
|
137
|
-
info: MQTTMessageInfo
|
|
138
|
-
properties: Properties | None
|
|
139
|
-
def __init__(self, mid: int = 0, topic: bytes | bytearray = b"") -> None: ...
|
|
140
|
-
def __eq__(self, other: object) -> bool: ...
|
|
141
|
-
def __ne__(self, other: object) -> bool: ...
|
|
142
|
-
@property
|
|
143
|
-
def topic(self) -> str: ...
|
|
144
|
-
@topic.setter
|
|
145
|
-
def topic(self, value: bytes | bytearray) -> None: ...
|
|
146
|
-
|
|
147
|
-
class Client:
|
|
148
|
-
suppress_exceptions: bool
|
|
149
|
-
def __init__(
|
|
150
|
-
self,
|
|
151
|
-
client_id: str | None = "",
|
|
152
|
-
clean_session: bool | None = None,
|
|
153
|
-
userdata: _UserData | None = None,
|
|
154
|
-
protocol: int = 4,
|
|
155
|
-
transport: str = "tcp",
|
|
156
|
-
reconnect_on_failure: bool = True,
|
|
157
|
-
) -> None: ...
|
|
158
|
-
def __del__(self) -> None: ...
|
|
159
|
-
def reinitialise(self, client_id: str = "", clean_session: bool = True, userdata: _UserData | None = None) -> None: ...
|
|
160
|
-
def ws_set_options(self, path: str = "/mqtt", headers: _ExtraHeader | None = None) -> None: ...
|
|
161
|
-
def tls_set_context(self, context: _ssl.SSLContext | None = None) -> None: ...
|
|
162
|
-
def tls_set(
|
|
163
|
-
self,
|
|
164
|
-
ca_certs: str | None = None,
|
|
165
|
-
certfile: str | None = None,
|
|
166
|
-
keyfile: str | None = None,
|
|
167
|
-
cert_reqs: _ssl.VerifyMode | None = None,
|
|
168
|
-
tls_version: _ssl._SSLMethod | None = None,
|
|
169
|
-
ciphers: str | None = None,
|
|
170
|
-
keyfile_password: _ssl._PasswordType | None = None,
|
|
171
|
-
) -> None: ...
|
|
172
|
-
def tls_insecure_set(self, value: bool) -> None: ...
|
|
173
|
-
def proxy_set(self, **proxy_args: Any) -> None: ...
|
|
174
|
-
def enable_logger(self, logger: logging.Logger | None = None) -> None: ...
|
|
175
|
-
def disable_logger(self) -> None: ...
|
|
176
|
-
def connect(
|
|
177
|
-
self,
|
|
178
|
-
host: str,
|
|
179
|
-
port: int = 1883,
|
|
180
|
-
keepalive: int = 60,
|
|
181
|
-
bind_address: str = "",
|
|
182
|
-
bind_port: int = 0,
|
|
183
|
-
clean_start: int = 3,
|
|
184
|
-
properties: Properties | None = None,
|
|
185
|
-
) -> int: ...
|
|
186
|
-
def connect_srv(
|
|
187
|
-
self,
|
|
188
|
-
domain: str | None = None,
|
|
189
|
-
keepalive: int = 60,
|
|
190
|
-
bind_address: str = "",
|
|
191
|
-
clean_start: int = 3,
|
|
192
|
-
properties: Properties | None = None,
|
|
193
|
-
) -> int: ...
|
|
194
|
-
def connect_async(
|
|
195
|
-
self,
|
|
196
|
-
host: str,
|
|
197
|
-
port: int = 1883,
|
|
198
|
-
keepalive: int = 60,
|
|
199
|
-
bind_address: str = "",
|
|
200
|
-
bind_port: int = 0,
|
|
201
|
-
clean_start: int = 3,
|
|
202
|
-
properties: Properties | None = None,
|
|
203
|
-
) -> None: ...
|
|
204
|
-
def reconnect_delay_set(self, min_delay: int = 1, max_delay: int = 120) -> None: ...
|
|
205
|
-
def reconnect(self) -> int: ...
|
|
206
|
-
def loop(self, timeout: float = 1.0, max_packets: int = 1) -> int: ...
|
|
207
|
-
def publish(
|
|
208
|
-
self,
|
|
209
|
-
topic: str,
|
|
210
|
-
payload: _Payload | None = None,
|
|
211
|
-
qos: int = 0,
|
|
212
|
-
retain: bool = False,
|
|
213
|
-
properties: Properties | None = None,
|
|
214
|
-
) -> MQTTMessageInfo: ...
|
|
215
|
-
def username_pw_set(self, username: str, password: str | bytes | bytearray | None = None) -> None: ...
|
|
216
|
-
def enable_bridge_mode(self) -> None: ...
|
|
217
|
-
def is_connected(self) -> bool: ...
|
|
218
|
-
def disconnect(self, reasoncode: ReasonCodes | None = None, properties: Properties | None = None) -> int: ...
|
|
219
|
-
def subscribe(
|
|
220
|
-
self,
|
|
221
|
-
topic: str | tuple[str, SubscribeOptions] | list[tuple[str, SubscribeOptions]] | list[tuple[str, int]],
|
|
222
|
-
qos: int = 0,
|
|
223
|
-
options: SubscribeOptions | None = None,
|
|
224
|
-
properties: Properties | None = None,
|
|
225
|
-
) -> tuple[int, int]: ...
|
|
226
|
-
def unsubscribe(self, topic: str | list[str], properties: Properties | None = None) -> tuple[int, int]: ...
|
|
227
|
-
def loop_read(self, max_packets: int = 1) -> int: ...
|
|
228
|
-
def loop_write(self, max_packets: int = 1) -> int: ...
|
|
229
|
-
def want_write(self) -> bool: ...
|
|
230
|
-
def loop_misc(self) -> int: ...
|
|
231
|
-
def max_inflight_messages_set(self, inflight: int) -> None: ...
|
|
232
|
-
def max_queued_messages_set(self, queue_size: int) -> Client: ...
|
|
233
|
-
def message_retry_set(self, retry: Unused) -> None: ...
|
|
234
|
-
def user_data_set(self, userdata: _UserData) -> None: ...
|
|
235
|
-
def will_set(
|
|
236
|
-
self,
|
|
237
|
-
topic: str,
|
|
238
|
-
payload: _Payload | None = None,
|
|
239
|
-
qos: int = 0,
|
|
240
|
-
retain: bool = False,
|
|
241
|
-
properties: Properties | None = None,
|
|
242
|
-
) -> None: ...
|
|
243
|
-
def will_clear(self) -> None: ...
|
|
244
|
-
def socket(self) -> _Socket | WebsocketWrapper: ...
|
|
245
|
-
def loop_forever(self, timeout: float = 1.0, max_packets: int = 1, retry_first_connection: bool = False) -> int: ...
|
|
246
|
-
def loop_start(self) -> int | None: ...
|
|
247
|
-
def loop_stop(self, force: bool = False) -> int | None: ...
|
|
248
|
-
@property
|
|
249
|
-
def on_log(self) -> _OnLog | None: ...
|
|
250
|
-
@on_log.setter
|
|
251
|
-
def on_log(self, func: _OnLog | None) -> None: ...
|
|
252
|
-
def log_callback(self) -> Callable[[_OnLog], _OnLog]: ...
|
|
253
|
-
@property
|
|
254
|
-
def on_connect(self) -> _OnConnect | _OnConnectV5 | None: ...
|
|
255
|
-
@on_connect.setter
|
|
256
|
-
def on_connect(self, func: _OnConnect | _OnConnectV5 | None) -> None: ...
|
|
257
|
-
def connect_callback(self) -> Callable[[_TOnConnect], _TOnConnect]: ...
|
|
258
|
-
@property
|
|
259
|
-
def on_connect_fail(self) -> _OnConnectFail | None: ...
|
|
260
|
-
@on_connect_fail.setter
|
|
261
|
-
def on_connect_fail(self, func: _OnConnectFail | None) -> None: ...
|
|
262
|
-
def connect_fail_callback(self) -> Callable[[_OnConnectFail], _OnConnectFail]: ...
|
|
263
|
-
@property
|
|
264
|
-
def on_subscribe(self) -> _OnSubscribe | _OnSubscribeV5 | None: ...
|
|
265
|
-
@on_subscribe.setter
|
|
266
|
-
def on_subscribe(self, func: _OnSubscribe | _OnSubscribeV5 | None) -> None: ...
|
|
267
|
-
def subscribe_callback(self) -> Callable[[_TOnSubscribe], _TOnSubscribe]: ...
|
|
268
|
-
@property
|
|
269
|
-
def on_message(self) -> _OnMessage | None: ...
|
|
270
|
-
@on_message.setter
|
|
271
|
-
def on_message(self, func: _OnMessage | None) -> None: ...
|
|
272
|
-
def message_callback(self) -> Callable[[_OnMessage], _OnMessage]: ...
|
|
273
|
-
@property
|
|
274
|
-
def on_publish(self) -> _OnPublish | None: ...
|
|
275
|
-
@on_publish.setter
|
|
276
|
-
def on_publish(self, func: _OnPublish | None) -> None: ...
|
|
277
|
-
def publish_callback(self) -> Callable[[_OnPublish], _OnPublish]: ...
|
|
278
|
-
@property
|
|
279
|
-
def on_unsubscribe(self) -> _OnUnsubscribe | _OnUnsubscribeV5 | None: ...
|
|
280
|
-
@on_unsubscribe.setter
|
|
281
|
-
def on_unsubscribe(self, func: _OnUnsubscribe | _OnUnsubscribeV5 | None) -> None: ...
|
|
282
|
-
def unsubscribe_callback(self) -> Callable[[_TOnUnsubscribe], _TOnUnsubscribe]: ...
|
|
283
|
-
@property
|
|
284
|
-
def on_disconnect(self) -> _OnDisconnect | _OnDisconnectV5 | None: ...
|
|
285
|
-
@on_disconnect.setter
|
|
286
|
-
def on_disconnect(self, func: _OnDisconnect | _OnDisconnectV5 | None) -> None: ...
|
|
287
|
-
def disconnect_callback(self) -> Callable[[_TOnDisconnect], _TOnDisconnect]: ...
|
|
288
|
-
@property
|
|
289
|
-
def on_socket_open(self) -> _OnSocket | None: ...
|
|
290
|
-
@on_socket_open.setter
|
|
291
|
-
def on_socket_open(self, func: _OnSocket | None) -> None: ...
|
|
292
|
-
def socket_open_callback(self) -> Callable[[_OnSocket], _OnSocket]: ...
|
|
293
|
-
@property
|
|
294
|
-
def on_socket_close(self) -> _OnSocket | None: ...
|
|
295
|
-
@on_socket_close.setter
|
|
296
|
-
def on_socket_close(self, func: _OnSocket | None) -> None: ...
|
|
297
|
-
def socket_close_callback(self) -> Callable[[_OnSocket], _OnSocket]: ...
|
|
298
|
-
@property
|
|
299
|
-
def on_socket_register_write(self) -> _OnSocket | None: ...
|
|
300
|
-
@on_socket_register_write.setter
|
|
301
|
-
def on_socket_register_write(self, func: _OnSocket | None) -> None: ...
|
|
302
|
-
def socket_register_write_callback(self) -> Callable[[_OnSocket], _OnSocket]: ...
|
|
303
|
-
@property
|
|
304
|
-
def on_socket_unregister_write(self) -> _OnSocket | None: ...
|
|
305
|
-
@on_socket_unregister_write.setter
|
|
306
|
-
def on_socket_unregister_write(self, func: _OnSocket | None) -> None: ...
|
|
307
|
-
def socket_unregister_write_callback(self) -> Callable[[_OnSocket], _OnSocket]: ...
|
|
308
|
-
def message_callback_add(self, sub: str, callback: _OnMessage) -> None: ...
|
|
309
|
-
def topic_callback(self, sub: str) -> Callable[[_OnMessage], _OnMessage]: ...
|
|
310
|
-
def message_callback_remove(self, sub: str) -> None: ...
|
|
311
|
-
|
|
312
|
-
class WebsocketWrapper:
|
|
313
|
-
OPCODE_CONTINUATION: int
|
|
314
|
-
OPCODE_TEXT: int
|
|
315
|
-
OPCODE_BINARY: int
|
|
316
|
-
OPCODE_CONNCLOSE: int
|
|
317
|
-
OPCODE_PING: int
|
|
318
|
-
OPCODE_PONG: int
|
|
319
|
-
connected: bool
|
|
320
|
-
def __init__(
|
|
321
|
-
self, socket: _Socket, host: str, port: int, is_ssl: bool, path: str, extra_headers: _ExtraHeader | None
|
|
322
|
-
) -> None: ...
|
|
323
|
-
def __del__(self) -> None: ...
|
|
324
|
-
def recv(self, length: int) -> bytes | bytearray | None: ...
|
|
325
|
-
def read(self, length: int) -> bytes | bytearray | None: ...
|
|
326
|
-
def send(self, data: bytes | bytearray) -> int: ...
|
|
327
|
-
def write(self, data: bytes | bytearray) -> int: ...
|
|
328
|
-
def close(self) -> None: ...
|
|
329
|
-
def fileno(self) -> int: ...
|
|
330
|
-
def pending(self) -> int: ...
|
|
331
|
-
def setblocking(self, flag: bool) -> None: ...
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
from collections.abc import Generator
|
|
2
|
-
from typing import Any
|
|
3
|
-
|
|
4
|
-
class MQTTMatcher:
|
|
5
|
-
class Node: ...
|
|
6
|
-
|
|
7
|
-
def __init__(self) -> None: ...
|
|
8
|
-
def __setitem__(self, key: str, value: Any) -> None: ...
|
|
9
|
-
def __getitem__(self, key: str) -> Any: ...
|
|
10
|
-
def __delitem__(self, key: str) -> None: ...
|
|
11
|
-
def iter_match(self, topic: str) -> Generator[Any, None, None]: ...
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
class PacketTypes:
|
|
2
|
-
indexes: range
|
|
3
|
-
CONNECT: int
|
|
4
|
-
CONNACK: int
|
|
5
|
-
PUBLISH: int
|
|
6
|
-
PUBACK: int
|
|
7
|
-
PUBREC: int
|
|
8
|
-
PUBREL: int
|
|
9
|
-
PUBCOMP: int
|
|
10
|
-
SUBSCRIBE: int
|
|
11
|
-
SUBACK: int
|
|
12
|
-
UNSUBSCRIBE: int
|
|
13
|
-
UNSUBACK: int
|
|
14
|
-
PINGREQ: int
|
|
15
|
-
PINGRESP: int
|
|
16
|
-
DISCONNECT: int
|
|
17
|
-
AUTH: int
|
|
18
|
-
WILLMESSAGE: int
|
|
19
|
-
Names: list[str]
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
from typing import Any
|
|
2
|
-
|
|
3
|
-
from . import MQTTException as MQTTException
|
|
4
|
-
|
|
5
|
-
class MalformedPacket(MQTTException): ...
|
|
6
|
-
|
|
7
|
-
def writeInt16(length: int) -> bytearray: ...
|
|
8
|
-
def readInt16(buf: bytes) -> int: ...
|
|
9
|
-
def writeInt32(length: int) -> bytearray: ...
|
|
10
|
-
def readInt32(buf: bytes) -> int: ...
|
|
11
|
-
def writeUTF(data: str | bytes) -> bytearray: ...
|
|
12
|
-
def readUTF(buffer: bytes, maxlen: int) -> tuple[str, int]: ...
|
|
13
|
-
def writeBytes(buffer: bytes) -> bytearray: ...
|
|
14
|
-
def readBytes(buffer: bytes) -> tuple[bytes, int]: ...
|
|
15
|
-
|
|
16
|
-
class VariableByteIntegers:
|
|
17
|
-
@staticmethod
|
|
18
|
-
def encode(x: int) -> bytes: ...
|
|
19
|
-
@staticmethod
|
|
20
|
-
def decode(buffer: bytes) -> tuple[int, int]: ...
|
|
21
|
-
|
|
22
|
-
class Properties:
|
|
23
|
-
packetType: int
|
|
24
|
-
types: list[str]
|
|
25
|
-
names: dict[str, int]
|
|
26
|
-
properties: dict[int, tuple[int, list[int]]]
|
|
27
|
-
def __init__(self, packetType: int) -> None: ...
|
|
28
|
-
def allowsMultiple(self, compressedName: str) -> bool: ...
|
|
29
|
-
def getIdentFromName(self, compressedName: str) -> int: ...
|
|
30
|
-
def __setattr__(self, name: str, value: Any) -> None: ...
|
|
31
|
-
def json(self) -> dict[str, Any]: ...
|
|
32
|
-
def isEmpty(self) -> bool: ...
|
|
33
|
-
def clear(self) -> None: ...
|
|
34
|
-
def writeProperty(self, identifier: int, type: int, value: Any) -> bytes: ...
|
|
35
|
-
def pack(self) -> bytes: ...
|
|
36
|
-
def readProperty(self, buffer: bytes, type: int, propslen: int) -> Any: ...
|
|
37
|
-
def getNameFromIdent(self, identifier: int) -> str | None: ...
|
|
38
|
-
def unpack(self, buffer: bytes) -> tuple[Properties, int]: ...
|