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.
Files changed (164) hide show
  1. package/dist/pyright-langserver.js +1 -1
  2. package/dist/pyright-langserver.js.map +1 -1
  3. package/dist/pyright.js +1 -1
  4. package/dist/pyright.js.map +1 -1
  5. package/dist/typeshed-fallback/commit.txt +1 -1
  6. package/dist/typeshed-fallback/stdlib/_ast.pyi +5 -3
  7. package/dist/typeshed-fallback/stdlib/_collections_abc.pyi +6 -3
  8. package/dist/typeshed-fallback/stdlib/_ctypes.pyi +2 -2
  9. package/dist/typeshed-fallback/stdlib/_operator.pyi +5 -1
  10. package/dist/typeshed-fallback/stdlib/_stat.pyi +6 -6
  11. package/dist/typeshed-fallback/stdlib/_tkinter.pyi +2 -2
  12. package/dist/typeshed-fallback/stdlib/argparse.pyi +11 -1
  13. package/dist/typeshed-fallback/stdlib/array.pyi +3 -3
  14. package/dist/typeshed-fallback/stdlib/ast.pyi +18 -17
  15. package/dist/typeshed-fallback/stdlib/builtins.pyi +7 -5
  16. package/dist/typeshed-fallback/stdlib/cmd.pyi +2 -1
  17. package/dist/typeshed-fallback/stdlib/collections/__init__.pyi +2 -1
  18. package/dist/typeshed-fallback/stdlib/contextlib.pyi +2 -0
  19. package/dist/typeshed-fallback/stdlib/crypt.pyi +6 -5
  20. package/dist/typeshed-fallback/stdlib/dataclasses.pyi +5 -1
  21. package/dist/typeshed-fallback/stdlib/datetime.pyi +2 -2
  22. package/dist/typeshed-fallback/stdlib/distutils/cmd.pyi +120 -0
  23. package/dist/typeshed-fallback/stdlib/distutils/command/__init__.pyi +48 -0
  24. package/dist/typeshed-fallback/stdlib/distutils/command/check.pyi +2 -2
  25. package/dist/typeshed-fallback/stdlib/distutils/command/config.pyi +2 -2
  26. package/dist/typeshed-fallback/stdlib/distutils/command/install.pyi +9 -4
  27. package/dist/typeshed-fallback/stdlib/distutils/command/install_lib.pyi +2 -2
  28. package/dist/typeshed-fallback/stdlib/distutils/core.pyi +2 -2
  29. package/dist/typeshed-fallback/stdlib/distutils/cygwinccompiler.pyi +5 -5
  30. package/dist/typeshed-fallback/stdlib/distutils/debug.pyi +3 -1
  31. package/dist/typeshed-fallback/stdlib/distutils/dist.pyi +149 -4
  32. package/dist/typeshed-fallback/stdlib/distutils/fancy_getopt.pyi +6 -6
  33. package/dist/typeshed-fallback/stdlib/distutils/log.pyi +6 -6
  34. package/dist/typeshed-fallback/stdlib/distutils/sysconfig.pyi +7 -7
  35. package/dist/typeshed-fallback/stdlib/email/message.pyi +2 -1
  36. package/dist/typeshed-fallback/stdlib/email/utils.pyi +4 -1
  37. package/dist/typeshed-fallback/stdlib/filecmp.pyi +18 -7
  38. package/dist/typeshed-fallback/stdlib/ftplib.pyi +1 -1
  39. package/dist/typeshed-fallback/stdlib/json/encoder.pyi +6 -6
  40. package/dist/typeshed-fallback/stdlib/logging/__init__.pyi +31 -36
  41. package/dist/typeshed-fallback/stdlib/marshal.pyi +2 -2
  42. package/dist/typeshed-fallback/stdlib/math.pyi +3 -3
  43. package/dist/typeshed-fallback/stdlib/operator.pyi +3 -0
  44. package/dist/typeshed-fallback/stdlib/os/__init__.pyi +4 -2
  45. package/dist/typeshed-fallback/stdlib/pathlib.pyi +24 -2
  46. package/dist/typeshed-fallback/stdlib/poplib.pyi +2 -1
  47. package/dist/typeshed-fallback/stdlib/pty.pyi +8 -3
  48. package/dist/typeshed-fallback/stdlib/pyexpat/__init__.pyi +3 -3
  49. package/dist/typeshed-fallback/stdlib/pyexpat/errors.pyi +45 -43
  50. package/dist/typeshed-fallback/stdlib/pyexpat/model.pyi +12 -10
  51. package/dist/typeshed-fallback/stdlib/select.pyi +1 -1
  52. package/dist/typeshed-fallback/stdlib/signal.pyi +1 -1
  53. package/dist/typeshed-fallback/stdlib/sqlite3/dbapi2.pyi +8 -2
  54. package/dist/typeshed-fallback/stdlib/tarfile.pyi +1 -1
  55. package/dist/typeshed-fallback/stdlib/time.pyi +5 -5
  56. package/dist/typeshed-fallback/stdlib/tkinter/__init__.pyi +28 -4
  57. package/dist/typeshed-fallback/stdlib/tkinter/constants.pyi +6 -6
  58. package/dist/typeshed-fallback/stdlib/tkinter/dialog.pyi +2 -2
  59. package/dist/typeshed-fallback/stdlib/tkinter/messagebox.pyi +17 -17
  60. package/dist/typeshed-fallback/stdlib/tkinter/ttk.pyi +3 -1
  61. package/dist/typeshed-fallback/stdlib/typing.pyi +2 -1
  62. package/dist/typeshed-fallback/stdlib/urllib/request.pyi +1 -0
  63. package/dist/typeshed-fallback/stdlib/zipfile/__init__.pyi +78 -3
  64. package/dist/typeshed-fallback/stdlib/zipfile/_path.pyi +1 -0
  65. package/dist/typeshed-fallback/stubs/JACK-Client/METADATA.toml +3 -1
  66. package/dist/typeshed-fallback/stubs/cachetools/METADATA.toml +1 -1
  67. package/dist/typeshed-fallback/stubs/cachetools/cachetools/__init__.pyi +2 -2
  68. package/dist/typeshed-fallback/stubs/corus/METADATA.toml +2 -0
  69. package/dist/typeshed-fallback/stubs/corus/corus/__init__.pyi +1 -0
  70. package/dist/typeshed-fallback/stubs/corus/corus/io.pyi +21 -0
  71. package/dist/typeshed-fallback/stubs/corus/corus/readme.pyi +17 -0
  72. package/dist/typeshed-fallback/stubs/corus/corus/record.pyi +8 -0
  73. package/dist/typeshed-fallback/stubs/corus/corus/sources/__init__.pyi +23 -0
  74. package/dist/typeshed-fallback/stubs/corus/corus/sources/bsnlp.pyi +75 -0
  75. package/dist/typeshed-fallback/stubs/corus/corus/sources/buriy.pyi +18 -0
  76. package/dist/typeshed-fallback/stubs/corus/corus/sources/corpora.pyi +50 -0
  77. package/dist/typeshed-fallback/stubs/corus/corus/sources/factru.pyi +74 -0
  78. package/dist/typeshed-fallback/stubs/corus/corus/sources/gareev.pyi +21 -0
  79. package/dist/typeshed-fallback/stubs/corus/corus/sources/gramru.pyi +1 -0
  80. package/dist/typeshed-fallback/stubs/corus/corus/sources/lenta.pyi +19 -0
  81. package/dist/typeshed-fallback/stubs/corus/corus/sources/librusec.pyi +14 -0
  82. package/dist/typeshed-fallback/stubs/corus/corus/sources/meta.pyi +54 -0
  83. package/dist/typeshed-fallback/stubs/corus/corus/sources/mokoron.pyi +28 -0
  84. package/dist/typeshed-fallback/stubs/corus/corus/sources/morphoru.pyi +24 -0
  85. package/dist/typeshed-fallback/stubs/corus/corus/sources/ne5.pyi +28 -0
  86. package/dist/typeshed-fallback/stubs/corus/corus/sources/ods.pyi +46 -0
  87. package/dist/typeshed-fallback/stubs/corus/corus/sources/omnia.pyi +49 -0
  88. package/dist/typeshed-fallback/stubs/corus/corus/sources/persons.pyi +27 -0
  89. package/dist/typeshed-fallback/stubs/corus/corus/sources/ria.pyi +21 -0
  90. package/dist/typeshed-fallback/stubs/corus/corus/sources/rudrec.pyi +27 -0
  91. package/dist/typeshed-fallback/stubs/corus/corus/sources/russe.pyi +16 -0
  92. package/dist/typeshed-fallback/stubs/corus/corus/sources/simlex.pyi +14 -0
  93. package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/__init__.pyi +10 -0
  94. package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/arzamas.pyi +6 -0
  95. package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/common.pyi +77 -0
  96. package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/fontanka.pyi +6 -0
  97. package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/interfax.pyi +6 -0
  98. package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/kp.pyi +6 -0
  99. package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/lenta.pyi +6 -0
  100. package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/magazines.pyi +6 -0
  101. package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/nplus1.pyi +6 -0
  102. package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/proza.pyi +8 -0
  103. package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/social.pyi +15 -0
  104. package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/subtitles.pyi +6 -0
  105. package/dist/typeshed-fallback/stubs/corus/corus/sources/toloka.pyi +28 -0
  106. package/dist/typeshed-fallback/stubs/corus/corus/sources/ud.pyi +29 -0
  107. package/dist/typeshed-fallback/stubs/corus/corus/sources/wiki.pyi +20 -0
  108. package/dist/typeshed-fallback/stubs/corus/corus/sources/wikiner.pyi +19 -0
  109. package/dist/typeshed-fallback/stubs/corus/corus/third/WikiExtractor.pyi +227 -0
  110. package/dist/typeshed-fallback/stubs/corus/corus/third/__init__.pyi +0 -0
  111. package/dist/typeshed-fallback/stubs/corus/corus/zip.pyi +28 -0
  112. package/dist/typeshed-fallback/stubs/fpdf2/fpdf/drawing.pyi +2 -2
  113. package/dist/typeshed-fallback/stubs/fpdf2/fpdf/fpdf.pyi +1 -1
  114. package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/client.pyi +2 -2
  115. package/dist/typeshed-fallback/stubs/influxdb-client/METADATA.toml +1 -1
  116. package/dist/typeshed-fallback/stubs/jsonschema/jsonschema/validators.pyi +1 -1
  117. package/dist/typeshed-fallback/stubs/networkx/METADATA.toml +3 -2
  118. package/dist/typeshed-fallback/stubs/networkx/networkx/classes/digraph.pyi +14 -14
  119. package/dist/typeshed-fallback/stubs/networkx/networkx/classes/graph.pyi +15 -9
  120. package/dist/typeshed-fallback/stubs/networkx/networkx/classes/multidigraph.pyi +17 -4
  121. package/dist/typeshed-fallback/stubs/networkx/networkx/classes/multigraph.pyi +4 -0
  122. package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/cell/__init__.pyi +2 -0
  123. package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/chart/series.pyi +3 -1
  124. package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/worksheet/_reader.pyi +4 -5
  125. package/dist/typeshed-fallback/stubs/passlib/passlib/utils/handlers.pyi +6 -2
  126. package/dist/typeshed-fallback/stubs/peewee/peewee.pyi +1 -1
  127. package/dist/typeshed-fallback/stubs/polib/polib.pyi +4 -2
  128. package/dist/typeshed-fallback/stubs/psycopg2/psycopg2/_psycopg.pyi +1 -1
  129. package/dist/typeshed-fallback/stubs/pyflakes/pyflakes/checker.pyi +2 -2
  130. package/dist/typeshed-fallback/stubs/pygit2/pygit2/utils.pyi +2 -2
  131. package/dist/typeshed-fallback/stubs/pyinstaller/METADATA.toml +1 -5
  132. package/dist/typeshed-fallback/stubs/pyinstaller/PyInstaller/building/splash.pyi +0 -1
  133. package/dist/typeshed-fallback/stubs/pyinstaller/PyInstaller/compat.pyi +2 -0
  134. package/dist/typeshed-fallback/stubs/pynput/pynput/keyboard/_base.pyi +2 -2
  135. package/dist/typeshed-fallback/stubs/redis/redis/client.pyi +24 -8
  136. package/dist/typeshed-fallback/stubs/reportlab/reportlab/platypus/doctemplate.pyi +7 -1
  137. package/dist/typeshed-fallback/stubs/seaborn/METADATA.toml +3 -1
  138. package/dist/typeshed-fallback/stubs/seaborn/seaborn/_core/plot.pyi +1 -1
  139. package/dist/typeshed-fallback/stubs/setuptools/setuptools/__init__.pyi +136 -4
  140. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/cmd.pyi +2 -0
  141. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/dist.pyi +6 -4
  142. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/sysconfig.pyi +3 -3
  143. package/dist/typeshed-fallback/stubs/setuptools/setuptools/dist.pyi +185 -0
  144. package/dist/typeshed-fallback/stubs/setuptools/setuptools/wheel.pyi +1 -1
  145. package/dist/typeshed-fallback/stubs/shapely/METADATA.toml +3 -1
  146. package/package.json +1 -1
  147. package/dist/typeshed-fallback/stubs/flake8-2020/METADATA.toml +0 -2
  148. package/dist/typeshed-fallback/stubs/flake8-2020/flake8_2020.pyi +0 -26
  149. package/dist/typeshed-fallback/stubs/paho-mqtt/METADATA.toml +0 -3
  150. package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/__init__.pyi +0 -1
  151. package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/client.pyi +0 -331
  152. package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/matcher.pyi +0 -11
  153. package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/packettypes.pyi +0 -19
  154. package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/properties.pyi +0 -38
  155. package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/publish.pyi +0 -63
  156. package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/reasoncodes.pyi +0 -13
  157. package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/subscribe.pyi +0 -39
  158. package/dist/typeshed-fallback/stubs/paho-mqtt/paho/mqtt/subscribeoptions.pyi +0 -24
  159. package/dist/typeshed-fallback/stubs/python-slugify/METADATA.toml +0 -3
  160. package/dist/typeshed-fallback/stubs/python-slugify/slugify/__init__.pyi +0 -12
  161. package/dist/typeshed-fallback/stubs/python-slugify/slugify/__version__.pyi +0 -8
  162. package/dist/typeshed-fallback/stubs/python-slugify/slugify/slugify.pyi +0 -20
  163. package/dist/typeshed-fallback/stubs/python-slugify/slugify/special.pyi +0 -8
  164. /package/dist/typeshed-fallback/stubs/{paho-mqtt/paho/__init__.pyi → corus/corus/path.pyi} +0 -0
@@ -1,63 +0,0 @@
1
- import ssl
2
- from collections.abc import Iterable
3
- from typing import TypedDict
4
- from typing_extensions import NotRequired, TypeAlias
5
-
6
- _Payload: TypeAlias = str | bytes | bytearray | float
7
-
8
- class _Msg(TypedDict):
9
- topic: str
10
- payload: NotRequired[_Payload | None]
11
- qos: NotRequired[int]
12
- retain: NotRequired[int]
13
-
14
- class _Auth(TypedDict):
15
- username: str
16
- password: NotRequired[str]
17
-
18
- class _TLS(TypedDict):
19
- ca_certs: str
20
- certfile: NotRequired[str]
21
- keyfile: NotRequired[str]
22
- tls_version: NotRequired[ssl._SSLMethod]
23
- ciphers: NotRequired[str]
24
- insecure: NotRequired[str]
25
- cert_reqs: NotRequired[ssl.VerifyMode]
26
- keyfile_password: NotRequired[ssl._PasswordType]
27
-
28
- class _Proxy(TypedDict):
29
- proxy_type: int
30
- proxy_addr: str
31
- proxy_rdns: NotRequired[bool]
32
- proxy_username: NotRequired[str]
33
- proxy_passwor: NotRequired[str]
34
-
35
- def multiple(
36
- msgs: Iterable[_Msg],
37
- hostname: str = "localhost",
38
- port: int = 1883,
39
- client_id: str = "",
40
- keepalive: int = 60,
41
- will: _Msg | None = None,
42
- auth: _Auth | None = None,
43
- tls: _TLS | None = None,
44
- protocol: int = 4,
45
- transport: str = "tcp",
46
- proxy_args: _Proxy | None = None,
47
- ) -> None: ...
48
- def single(
49
- topic: str,
50
- payload: _Payload | None = None,
51
- qos: int | None = 0,
52
- retain: bool | None = False,
53
- hostname: str = "localhost",
54
- port: int = 1883,
55
- client_id: str = "",
56
- keepalive: int = 60,
57
- will: _Msg | None = None,
58
- auth: _Auth | None = None,
59
- tls: _TLS | None = None,
60
- protocol: int = 4,
61
- transport: str = "tcp",
62
- proxy_args: _Proxy | None = None,
63
- ) -> None: ...
@@ -1,13 +0,0 @@
1
- class ReasonCodes:
2
- packetType: int
3
- names: dict[int, dict[str, list[int]]]
4
- value: int
5
- def __init__(self, packetType: int, aName: str = "Success", identifier: int = -1) -> None: ...
6
- def __getName__(self, packetType: int, identifier: int) -> str: ...
7
- def getId(self, name: str) -> int: ...
8
- def set(self, name: str) -> None: ...
9
- def unpack(self, buffer: bytearray) -> int: ...
10
- def getName(self) -> str: ...
11
- def __eq__(self, other: object) -> bool: ...
12
- def json(self) -> str: ...
13
- def pack(self) -> bytearray: ...
@@ -1,39 +0,0 @@
1
- from collections.abc import Callable
2
-
3
- from .client import Client, MQTTMessage, _UserData
4
- from .publish import _TLS, _Auth, _Msg, _Proxy
5
-
6
- def callback(
7
- callback: Callable[[Client, _UserData, MQTTMessage], None],
8
- topics: list[str],
9
- qos: int = 0,
10
- userdata: _UserData | None = None,
11
- hostname: str = "localhost",
12
- port: int = 1883,
13
- client_id: str = "",
14
- keepalive: int = 60,
15
- will: _Msg | None = None,
16
- auth: _Auth | None = None,
17
- tls: _TLS | None = None,
18
- protocol: int = 4,
19
- transport: str = "tcp",
20
- clean_session: bool = True,
21
- proxy_args: _Proxy | None = None,
22
- ) -> None: ...
23
- def simple(
24
- topics: str | list[str],
25
- qos: int = 0,
26
- msg_count: int = 1,
27
- retained: bool = True,
28
- hostname: str = "localhost",
29
- port: int = 1883,
30
- client_id: str = "",
31
- keepalive: int = 60,
32
- will: _Msg | None = None,
33
- auth: _Auth | None = None,
34
- tls: _TLS | None = None,
35
- protocol: int = 4,
36
- transport: str = "tcp",
37
- clean_session: bool = True,
38
- proxy_args: _Proxy | None = None,
39
- ) -> list[MQTTMessage] | MQTTMessage: ...
@@ -1,24 +0,0 @@
1
- from typing import Any, TypedDict
2
-
3
- from . import MQTTException as MQTTException
4
-
5
- class _SubscribeOptionsJson(TypedDict):
6
- QoS: int
7
- noLocal: bool
8
- retainAsPublished: bool
9
- retainHandling: int
10
-
11
- class SubscribeOptions:
12
- RETAIN_SEND_ON_SUBSCRIBE: int
13
- RETAIN_SEND_IF_NEW_SUB: int
14
- RETAIN_DO_NOT_SEND: int
15
- names: list[str]
16
- Qos: int
17
- noLocal: bool
18
- retainAsPublished: bool
19
- retainHandling: int
20
- def __init__(self, qos: int = 0, noLocal: bool = False, retainAsPublished: bool = False, retainHandling: int = 0) -> None: ...
21
- def __setattr__(self, name: str, value: Any) -> None: ...
22
- def pack(self) -> bytes: ...
23
- def unpack(self, buffer: bytes | bytearray) -> int: ...
24
- def json(self) -> _SubscribeOptionsJson: ...
@@ -1,3 +0,0 @@
1
- version = "8.0.2"
2
- upstream_repository = "https://github.com/un33k/python-slugify"
3
- obsolete_since = "8.0.2" # Released on 2024-01-25
@@ -1,12 +0,0 @@
1
- from .__version__ import (
2
- __author__ as __author__,
3
- __author_email__ as __author_email__,
4
- __copyright__ as __copyright__,
5
- __description__ as __description__,
6
- __license__ as __license__,
7
- __title__ as __title__,
8
- __url__ as __url__,
9
- __version__ as __version__,
10
- )
11
- from .slugify import *
12
- from .special import *
@@ -1,8 +0,0 @@
1
- __title__: str
2
- __author__: str
3
- __author_email__: str
4
- __description__: str
5
- __url__: str
6
- __license__: str
7
- __copyright__: str
8
- __version__: str
@@ -1,20 +0,0 @@
1
- from collections.abc import Iterable
2
-
3
- def smart_truncate(
4
- string: str, max_length: int = 0, word_boundary: bool = False, separator: str = " ", save_order: bool = False
5
- ) -> str: ...
6
- def slugify(
7
- text: str,
8
- entities: bool = True,
9
- decimal: bool = True,
10
- hexadecimal: bool = True,
11
- max_length: int = 0,
12
- word_boundary: bool = False,
13
- separator: str = "-",
14
- save_order: bool = False,
15
- stopwords: Iterable[str] = (),
16
- regex_pattern: str | None = None,
17
- lowercase: bool = True,
18
- replacements: Iterable[Iterable[str]] = (),
19
- allow_unicode: bool = False,
20
- ) -> str: ...
@@ -1,8 +0,0 @@
1
- from collections.abc import Sequence
2
-
3
- def add_uppercase_char(char_list: Sequence[tuple[str, str]]) -> Sequence[tuple[str, str]]: ...
4
-
5
- CYRILLIC: Sequence[tuple[str, str]]
6
- GERMAN: Sequence[tuple[str, str]]
7
- GREEK: Sequence[tuple[str, str]]
8
- PRE_TRANSLATIONS: Sequence[tuple[str, str]]