basedpyright 1.24.0 → 1.25.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 (189) hide show
  1. package/dist/pyright-langserver.js +1 -1
  2. package/dist/pyright-langserver.js.LICENSE.txt +42 -0
  3. package/dist/pyright-langserver.js.map +1 -1
  4. package/dist/pyright.js +1 -1
  5. package/dist/pyright.js.map +1 -1
  6. package/dist/typeshed-fallback/stdlib/_asyncio.pyi +3 -25
  7. package/dist/typeshed-fallback/stdlib/_bisect.pyi +4 -44
  8. package/dist/typeshed-fallback/stdlib/_bootlocale.pyi +1 -1
  9. package/dist/typeshed-fallback/stdlib/_csv.pyi +2 -16
  10. package/dist/typeshed-fallback/stdlib/_dbm.pyi +1 -13
  11. package/dist/typeshed-fallback/stdlib/_decimal.pyi +1 -8
  12. package/dist/typeshed-fallback/stdlib/_dummy_thread.pyi +33 -33
  13. package/dist/typeshed-fallback/stdlib/_dummy_threading.pyi +164 -180
  14. package/dist/typeshed-fallback/stdlib/_gdbm.pyi +1 -39
  15. package/dist/typeshed-fallback/stdlib/_hashlib.pyi +7 -28
  16. package/dist/typeshed-fallback/stdlib/_imp.pyi +1 -3
  17. package/dist/typeshed-fallback/stdlib/_msi.pyi +92 -94
  18. package/dist/typeshed-fallback/stdlib/_sqlite3.pyi +6 -48
  19. package/dist/typeshed-fallback/stdlib/_ssl.pyi +1 -8
  20. package/dist/typeshed-fallback/stdlib/_thread.pyi +1 -8
  21. package/dist/typeshed-fallback/stdlib/_warnings.pyi +2 -6
  22. package/dist/typeshed-fallback/stdlib/aifc.pyi +91 -91
  23. package/dist/typeshed-fallback/stdlib/array.pyi +3 -17
  24. package/dist/typeshed-fallback/stdlib/asynchat.pyi +21 -21
  25. package/dist/typeshed-fallback/stdlib/asyncio/sslproto.pyi +4 -23
  26. package/dist/typeshed-fallback/stdlib/asyncore.pyi +90 -90
  27. package/dist/typeshed-fallback/stdlib/audioop.pyi +43 -95
  28. package/dist/typeshed-fallback/stdlib/binascii.pyi +5 -15
  29. package/dist/typeshed-fallback/stdlib/binhex.pyi +45 -45
  30. package/dist/typeshed-fallback/stdlib/builtins.pyi +8 -106
  31. package/dist/typeshed-fallback/stdlib/cgi.pyi +118 -118
  32. package/dist/typeshed-fallback/stdlib/cgitb.pyi +32 -32
  33. package/dist/typeshed-fallback/stdlib/chunk.pyi +20 -20
  34. package/dist/typeshed-fallback/stdlib/datetime.pyi +4 -12
  35. package/dist/typeshed-fallback/stdlib/distutils/__init__.pyi +5 -5
  36. package/dist/typeshed-fallback/stdlib/distutils/_msvccompiler.pyi +13 -13
  37. package/dist/typeshed-fallback/stdlib/distutils/archive_util.pyi +35 -35
  38. package/dist/typeshed-fallback/stdlib/distutils/bcppcompiler.pyi +3 -3
  39. package/dist/typeshed-fallback/stdlib/distutils/ccompiler.pyi +176 -176
  40. package/dist/typeshed-fallback/stdlib/distutils/cmd.pyi +229 -229
  41. package/dist/typeshed-fallback/stdlib/distutils/command/__init__.pyi +48 -48
  42. package/dist/typeshed-fallback/stdlib/distutils/command/bdist.pyi +27 -27
  43. package/dist/typeshed-fallback/stdlib/distutils/command/bdist_dumb.pyi +22 -22
  44. package/dist/typeshed-fallback/stdlib/distutils/command/bdist_msi.pyi +46 -46
  45. package/dist/typeshed-fallback/stdlib/distutils/command/bdist_rpm.pyi +53 -53
  46. package/dist/typeshed-fallback/stdlib/distutils/command/bdist_wininst.pyi +16 -16
  47. package/dist/typeshed-fallback/stdlib/distutils/command/build.pyi +34 -34
  48. package/dist/typeshed-fallback/stdlib/distutils/command/build_clib.pyi +29 -29
  49. package/dist/typeshed-fallback/stdlib/distutils/command/build_ext.pyi +52 -52
  50. package/dist/typeshed-fallback/stdlib/distutils/command/build_py.pyi +45 -45
  51. package/dist/typeshed-fallback/stdlib/distutils/command/build_scripts.pyi +25 -25
  52. package/dist/typeshed-fallback/stdlib/distutils/command/check.pyi +40 -40
  53. package/dist/typeshed-fallback/stdlib/distutils/command/clean.pyi +18 -18
  54. package/dist/typeshed-fallback/stdlib/distutils/command/config.pyi +84 -84
  55. package/dist/typeshed-fallback/stdlib/distutils/command/install.pyi +71 -71
  56. package/dist/typeshed-fallback/stdlib/distutils/command/install_data.pyi +20 -20
  57. package/dist/typeshed-fallback/stdlib/distutils/command/install_egg_info.pyi +19 -19
  58. package/dist/typeshed-fallback/stdlib/distutils/command/install_headers.pyi +17 -17
  59. package/dist/typeshed-fallback/stdlib/distutils/command/install_lib.pyi +26 -26
  60. package/dist/typeshed-fallback/stdlib/distutils/command/install_scripts.pyi +19 -19
  61. package/dist/typeshed-fallback/stdlib/distutils/command/register.pyi +21 -21
  62. package/dist/typeshed-fallback/stdlib/distutils/command/sdist.pyi +45 -45
  63. package/dist/typeshed-fallback/stdlib/distutils/command/upload.pyi +18 -18
  64. package/dist/typeshed-fallback/stdlib/distutils/config.pyi +17 -17
  65. package/dist/typeshed-fallback/stdlib/distutils/core.pyi +58 -58
  66. package/dist/typeshed-fallback/stdlib/distutils/cygwinccompiler.pyi +20 -20
  67. package/dist/typeshed-fallback/stdlib/distutils/debug.pyi +3 -3
  68. package/dist/typeshed-fallback/stdlib/distutils/dep_util.pyi +14 -14
  69. package/dist/typeshed-fallback/stdlib/distutils/dir_util.pyi +23 -23
  70. package/dist/typeshed-fallback/stdlib/distutils/dist.pyi +317 -317
  71. package/dist/typeshed-fallback/stdlib/distutils/errors.pyi +19 -19
  72. package/dist/typeshed-fallback/stdlib/distutils/extension.pyi +36 -36
  73. package/dist/typeshed-fallback/stdlib/distutils/fancy_getopt.pyi +34 -34
  74. package/dist/typeshed-fallback/stdlib/distutils/file_util.pyi +38 -38
  75. package/dist/typeshed-fallback/stdlib/distutils/filelist.pyi +58 -58
  76. package/dist/typeshed-fallback/stdlib/distutils/log.pyi +26 -26
  77. package/dist/typeshed-fallback/stdlib/distutils/msvccompiler.pyi +3 -3
  78. package/dist/typeshed-fallback/stdlib/distutils/spawn.pyi +10 -10
  79. package/dist/typeshed-fallback/stdlib/distutils/sysconfig.pyi +33 -33
  80. package/dist/typeshed-fallback/stdlib/distutils/text_file.pyi +21 -21
  81. package/dist/typeshed-fallback/stdlib/distutils/unixccompiler.pyi +3 -3
  82. package/dist/typeshed-fallback/stdlib/distutils/util.pyi +53 -53
  83. package/dist/typeshed-fallback/stdlib/distutils/version.pyi +36 -38
  84. package/dist/typeshed-fallback/stdlib/dummy_threading.pyi +2 -2
  85. package/dist/typeshed-fallback/stdlib/encodings/mac_centeuro.pyi +21 -21
  86. package/dist/typeshed-fallback/stdlib/formatter.pyi +88 -88
  87. package/dist/typeshed-fallback/stdlib/hmac.pyi +2 -30
  88. package/dist/typeshed-fallback/stdlib/imghdr.pyi +17 -17
  89. package/dist/typeshed-fallback/stdlib/imp.pyi +62 -62
  90. package/dist/typeshed-fallback/stdlib/importlib/metadata/__init__.pyi +7 -36
  91. package/dist/typeshed-fallback/stdlib/lib2to3/btm_matcher.pyi +28 -28
  92. package/dist/typeshed-fallback/stdlib/lib2to3/fixer_base.pyi +42 -42
  93. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_apply.pyi +8 -8
  94. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_asserts.pyi +10 -10
  95. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_basestring.pyi +8 -8
  96. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_buffer.pyi +8 -8
  97. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_dict.pyi +16 -16
  98. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_except.pyi +14 -14
  99. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_exec.pyi +8 -8
  100. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_execfile.pyi +8 -8
  101. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_exitfunc.pyi +13 -13
  102. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_filter.pyi +9 -9
  103. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_funcattrs.pyi +8 -8
  104. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_future.pyi +8 -8
  105. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_getcwdu.pyi +8 -8
  106. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_has_key.pyi +8 -8
  107. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_idioms.pyi +15 -15
  108. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_import.pyi +16 -16
  109. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_imports.pyi +21 -21
  110. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_imports2.pyi +8 -8
  111. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_input.pyi +11 -11
  112. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_intern.pyi +9 -9
  113. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_isinstance.pyi +8 -8
  114. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_itertools.pyi +9 -9
  115. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_itertools_imports.pyi +7 -7
  116. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_long.pyi +7 -7
  117. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_map.pyi +9 -9
  118. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_metaclass.pyi +17 -17
  119. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_methodattrs.pyi +10 -10
  120. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_ne.pyi +8 -8
  121. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_next.pyi +19 -19
  122. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_nonzero.pyi +8 -8
  123. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_numliterals.pyi +8 -8
  124. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_operator.pyi +12 -12
  125. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_paren.pyi +8 -8
  126. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_print.pyi +12 -12
  127. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_raise.pyi +8 -8
  128. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_raw_input.pyi +8 -8
  129. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_reduce.pyi +8 -8
  130. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_reload.pyi +9 -9
  131. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_renames.pyi +17 -17
  132. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_repr.pyi +8 -8
  133. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_set_literal.pyi +7 -7
  134. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_standarderror.pyi +8 -8
  135. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_sys_exc.pyi +9 -9
  136. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_throw.pyi +8 -8
  137. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_tuple_params.pyi +17 -17
  138. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_types.pyi +8 -8
  139. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_unicode.pyi +12 -12
  140. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_urllib.pyi +15 -15
  141. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_ws_comma.pyi +12 -12
  142. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_xrange.pyi +20 -20
  143. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_xreadlines.pyi +8 -8
  144. package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_zip.pyi +9 -9
  145. package/dist/typeshed-fallback/stdlib/lib2to3/main.pyi +42 -42
  146. package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/__init__.pyi +9 -9
  147. package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/driver.pyi +27 -27
  148. package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/grammar.pyi +24 -24
  149. package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/literals.pyi +7 -7
  150. package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/parse.pyi +30 -30
  151. package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/pgen.pyi +50 -50
  152. package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/token.pyi +69 -69
  153. package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/tokenize.pyi +96 -96
  154. package/dist/typeshed-fallback/stdlib/lib2to3/pygram.pyi +114 -114
  155. package/dist/typeshed-fallback/stdlib/lib2to3/pytree.pyi +117 -127
  156. package/dist/typeshed-fallback/stdlib/lib2to3/refactor.pyi +82 -82
  157. package/dist/typeshed-fallback/stdlib/mailcap.pyi +11 -11
  158. package/dist/typeshed-fallback/stdlib/marshal.pyi +4 -52
  159. package/dist/typeshed-fallback/stdlib/math.pyi +2 -6
  160. package/dist/typeshed-fallback/stdlib/msilib/__init__.pyi +177 -177
  161. package/dist/typeshed-fallback/stdlib/msilib/schema.pyi +94 -94
  162. package/dist/typeshed-fallback/stdlib/msilib/sequence.pyi +13 -13
  163. package/dist/typeshed-fallback/stdlib/msilib/text.pyi +7 -7
  164. package/dist/typeshed-fallback/stdlib/nis.pyi +4 -31
  165. package/dist/typeshed-fallback/stdlib/nntplib.pyi +125 -125
  166. package/dist/typeshed-fallback/stdlib/os/__init__.pyi +1 -8
  167. package/dist/typeshed-fallback/stdlib/parser.pyi +24 -55
  168. package/dist/typeshed-fallback/stdlib/pipes.pyi +16 -16
  169. package/dist/typeshed-fallback/stdlib/smtpd.pyi +91 -91
  170. package/dist/typeshed-fallback/stdlib/sndhdr.pyi +14 -14
  171. package/dist/typeshed-fallback/stdlib/spwd.pyi +13 -66
  172. package/dist/typeshed-fallback/stdlib/sqlite3/__init__.pyi +2 -6
  173. package/dist/typeshed-fallback/stdlib/ssl.pyi +0 -4
  174. package/dist/typeshed-fallback/stdlib/sunau.pyi +86 -86
  175. package/dist/typeshed-fallback/stdlib/symbol.pyi +93 -93
  176. package/dist/typeshed-fallback/stdlib/sys/__init__.pyi +4 -40
  177. package/dist/typeshed-fallback/stdlib/telnetlib.pyi +123 -123
  178. package/dist/typeshed-fallback/stdlib/tkinter/tix.pyi +299 -299
  179. package/dist/typeshed-fallback/stdlib/types.pyi +2 -6
  180. package/dist/typeshed-fallback/stdlib/typing.pyi +2 -6
  181. package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +544 -559
  182. package/dist/typeshed-fallback/stdlib/unittest/__init__.pyi +1 -6
  183. package/dist/typeshed-fallback/stdlib/uu.pyi +13 -13
  184. package/dist/typeshed-fallback/stdlib/xdrlib.pyi +57 -57
  185. package/dist/typeshed-fallback/stdlib/xxlimited.pyi +1 -3
  186. package/dist/typeshed-fallback/stdlib/zipimport.pyi +0 -29
  187. package/dist/typeshed-fallback/stdlib/zlib.pyi +1 -10
  188. package/dist/typeshed-fallback/stdlib/zoneinfo/__init__.pyi +3 -9
  189. package/package.json +1 -1
@@ -60,9 +60,4 @@ if sys.version_info >= (3, 11):
60
60
  if sys.version_info < (3, 12):
61
61
  def load_tests(loader: TestLoader, tests: TestSuite, pattern: str | None) -> TestSuite: ...
62
62
 
63
- def __dir__() -> set[str]:
64
- """
65
- __dir__() -> list
66
- specialized dir() implementation
67
- """
68
- ...
63
+ def __dir__() -> set[str]: ...
@@ -1,13 +1,13 @@
1
- from typing import BinaryIO
2
- from typing_extensions import TypeAlias
3
-
4
- __all__ = ["Error", "encode", "decode"]
5
-
6
- _File: TypeAlias = str | BinaryIO
7
-
8
- class Error(Exception): ...
9
-
10
- def encode(
11
- in_file: _File, out_file: _File, name: str | None = None, mode: int | None = None, *, backtick: bool = False
12
- ) -> None: ...
13
- def decode(in_file: _File, out_file: _File | None = None, mode: int | None = None, quiet: bool = False) -> None: ...
1
+ from typing import BinaryIO
2
+ from typing_extensions import TypeAlias
3
+
4
+ __all__ = ["Error", "encode", "decode"]
5
+
6
+ _File: TypeAlias = str | BinaryIO
7
+
8
+ class Error(Exception): ...
9
+
10
+ def encode(
11
+ in_file: _File, out_file: _File, name: str | None = None, mode: int | None = None, *, backtick: bool = False
12
+ ) -> None: ...
13
+ def decode(in_file: _File, out_file: _File | None = None, mode: int | None = None, quiet: bool = False) -> None: ...
@@ -1,57 +1,57 @@
1
- from collections.abc import Callable, Sequence
2
- from typing import TypeVar
3
-
4
- __all__ = ["Error", "Packer", "Unpacker", "ConversionError"]
5
-
6
- _T = TypeVar("_T")
7
-
8
- class Error(Exception):
9
- msg: str
10
- def __init__(self, msg: str) -> None: ...
11
-
12
- class ConversionError(Error): ...
13
-
14
- class Packer:
15
- def reset(self) -> None: ...
16
- def get_buffer(self) -> bytes: ...
17
- def get_buf(self) -> bytes: ...
18
- def pack_uint(self, x: int) -> None: ...
19
- def pack_int(self, x: int) -> None: ...
20
- def pack_enum(self, x: int) -> None: ...
21
- def pack_bool(self, x: bool) -> None: ...
22
- def pack_uhyper(self, x: int) -> None: ...
23
- def pack_hyper(self, x: int) -> None: ...
24
- def pack_float(self, x: float) -> None: ...
25
- def pack_double(self, x: float) -> None: ...
26
- def pack_fstring(self, n: int, s: bytes) -> None: ...
27
- def pack_fopaque(self, n: int, s: bytes) -> None: ...
28
- def pack_string(self, s: bytes) -> None: ...
29
- def pack_opaque(self, s: bytes) -> None: ...
30
- def pack_bytes(self, s: bytes) -> None: ...
31
- def pack_list(self, list: Sequence[_T], pack_item: Callable[[_T], object]) -> None: ...
32
- def pack_farray(self, n: int, list: Sequence[_T], pack_item: Callable[[_T], object]) -> None: ...
33
- def pack_array(self, list: Sequence[_T], pack_item: Callable[[_T], object]) -> None: ...
34
-
35
- class Unpacker:
36
- def __init__(self, data: bytes) -> None: ...
37
- def reset(self, data: bytes) -> None: ...
38
- def get_position(self) -> int: ...
39
- def set_position(self, position: int) -> None: ...
40
- def get_buffer(self) -> bytes: ...
41
- def done(self) -> None: ...
42
- def unpack_uint(self) -> int: ...
43
- def unpack_int(self) -> int: ...
44
- def unpack_enum(self) -> int: ...
45
- def unpack_bool(self) -> bool: ...
46
- def unpack_uhyper(self) -> int: ...
47
- def unpack_hyper(self) -> int: ...
48
- def unpack_float(self) -> float: ...
49
- def unpack_double(self) -> float: ...
50
- def unpack_fstring(self, n: int) -> bytes: ...
51
- def unpack_fopaque(self, n: int) -> bytes: ...
52
- def unpack_string(self) -> bytes: ...
53
- def unpack_opaque(self) -> bytes: ...
54
- def unpack_bytes(self) -> bytes: ...
55
- def unpack_list(self, unpack_item: Callable[[], _T]) -> list[_T]: ...
56
- def unpack_farray(self, n: int, unpack_item: Callable[[], _T]) -> list[_T]: ...
57
- def unpack_array(self, unpack_item: Callable[[], _T]) -> list[_T]: ...
1
+ from collections.abc import Callable, Sequence
2
+ from typing import TypeVar
3
+
4
+ __all__ = ["Error", "Packer", "Unpacker", "ConversionError"]
5
+
6
+ _T = TypeVar("_T")
7
+
8
+ class Error(Exception):
9
+ msg: str
10
+ def __init__(self, msg: str) -> None: ...
11
+
12
+ class ConversionError(Error): ...
13
+
14
+ class Packer:
15
+ def reset(self) -> None: ...
16
+ def get_buffer(self) -> bytes: ...
17
+ def get_buf(self) -> bytes: ...
18
+ def pack_uint(self, x: int) -> None: ...
19
+ def pack_int(self, x: int) -> None: ...
20
+ def pack_enum(self, x: int) -> None: ...
21
+ def pack_bool(self, x: bool) -> None: ...
22
+ def pack_uhyper(self, x: int) -> None: ...
23
+ def pack_hyper(self, x: int) -> None: ...
24
+ def pack_float(self, x: float) -> None: ...
25
+ def pack_double(self, x: float) -> None: ...
26
+ def pack_fstring(self, n: int, s: bytes) -> None: ...
27
+ def pack_fopaque(self, n: int, s: bytes) -> None: ...
28
+ def pack_string(self, s: bytes) -> None: ...
29
+ def pack_opaque(self, s: bytes) -> None: ...
30
+ def pack_bytes(self, s: bytes) -> None: ...
31
+ def pack_list(self, list: Sequence[_T], pack_item: Callable[[_T], object]) -> None: ...
32
+ def pack_farray(self, n: int, list: Sequence[_T], pack_item: Callable[[_T], object]) -> None: ...
33
+ def pack_array(self, list: Sequence[_T], pack_item: Callable[[_T], object]) -> None: ...
34
+
35
+ class Unpacker:
36
+ def __init__(self, data: bytes) -> None: ...
37
+ def reset(self, data: bytes) -> None: ...
38
+ def get_position(self) -> int: ...
39
+ def set_position(self, position: int) -> None: ...
40
+ def get_buffer(self) -> bytes: ...
41
+ def done(self) -> None: ...
42
+ def unpack_uint(self) -> int: ...
43
+ def unpack_int(self) -> int: ...
44
+ def unpack_enum(self) -> int: ...
45
+ def unpack_bool(self) -> bool: ...
46
+ def unpack_uhyper(self) -> int: ...
47
+ def unpack_hyper(self) -> int: ...
48
+ def unpack_float(self) -> float: ...
49
+ def unpack_double(self) -> float: ...
50
+ def unpack_fstring(self, n: int) -> bytes: ...
51
+ def unpack_fopaque(self, n: int) -> bytes: ...
52
+ def unpack_string(self) -> bytes: ...
53
+ def unpack_opaque(self) -> bytes: ...
54
+ def unpack_bytes(self) -> bytes: ...
55
+ def unpack_list(self, unpack_item: Callable[[], _T]) -> list[_T]: ...
56
+ def unpack_farray(self, n: int, unpack_item: Callable[[], _T]) -> list[_T]: ...
57
+ def unpack_array(self, unpack_item: Callable[[], _T]) -> list[_T]: ...
@@ -32,6 +32,4 @@ else:
32
32
  class error(Exception): ...
33
33
  class Null: ...
34
34
 
35
- def roj(b: Any, /) -> None:
36
- """roj(a,b) -> None"""
37
- ...
35
+ def roj(b: Any, /) -> None: ...
@@ -1,18 +1,3 @@
1
- """
2
- zipimport provides support for importing Python modules from Zip archives.
3
-
4
- This module exports three objects:
5
- - zipimporter: a class; its constructor takes a path to a Zip archive.
6
- - ZipImportError: exception raised by zipimporter objects. It's a
7
- subclass of ImportError, so it can be caught as ImportError, too.
8
- - _zip_directory_cache: a dict, mapping archive paths to zip directory
9
- info dicts, as used in zipimporter._files.
10
-
11
- It is usually not needed to use the zipimport module explicitly; it is
12
- used by the builtin import mechanism for sys.path items that are paths
13
- to Zip archives.
14
- """
15
-
16
1
  import sys
17
2
  from _typeshed import StrOrBytesPath
18
3
  from importlib.abc import ResourceReader
@@ -30,20 +15,6 @@ __all__ = ["ZipImportError", "zipimporter"]
30
15
  class ZipImportError(ImportError): ...
31
16
 
32
17
  class zipimporter(_LoaderBasics):
33
- """
34
- zipimporter(archivepath) -> zipimporter object
35
-
36
- Create a new zipimporter instance. 'archivepath' must be a path to
37
- a zipfile, or to a specific path inside a zipfile. For example, it can be
38
- '/tmp/myimport.zip', or '/tmp/myimport.zip/mydirectory', if mydirectory is a
39
- valid directory inside the archive.
40
-
41
- 'ZipImportError is raised if 'archivepath' doesn't point to a valid Zip
42
- archive.
43
-
44
- The 'archive' attribute of zipimporter objects contains the name of the
45
- zipfile targeted.
46
- """
47
18
  archive: str
48
19
  prefix: str
49
20
  if sys.version_info >= (3, 11):
@@ -96,16 +96,7 @@ if sys.version_info >= (3, 11):
96
96
  ...
97
97
 
98
98
  else:
99
- def compress(data: ReadableBuffer, /, level: int = -1) -> bytes:
100
- """
101
- Returns a bytes object containing compressed data.
102
-
103
- data
104
- Binary data to be compressed.
105
- level
106
- Compression level, in 0-9 or -1.
107
- """
108
- ...
99
+ def compress(data: ReadableBuffer, /, level: int = -1) -> bytes: ...
109
100
 
110
101
  def compressobj(
111
102
  level: int = -1, method: int = 8, wbits: int = 15, memLevel: int = 8, strategy: int = 0, zdict: ReadableBuffer | None = None
@@ -23,17 +23,11 @@ if sys.version_info >= (3, 9):
23
23
  def key(self) -> str: ...
24
24
  def __init__(self, key: str) -> None: ...
25
25
  @classmethod
26
- def no_cache(cls, key: str) -> Self:
27
- """Get a new instance of ZoneInfo, bypassing the cache."""
28
- ...
26
+ def no_cache(cls, key: str) -> Self: ...
29
27
  @classmethod
30
- def from_file(cls, fobj: _IOBytes, /, key: str | None = None) -> Self:
31
- """Create a ZoneInfo file from a file object."""
32
- ...
28
+ def from_file(cls, fobj: _IOBytes, /, key: str | None = None) -> Self: ...
33
29
  @classmethod
34
- def clear_cache(cls, *, only_keys: Iterable[str] | None = None) -> None:
35
- """Clear the ZoneInfo cache."""
36
- ...
30
+ def clear_cache(cls, *, only_keys: Iterable[str] | None = None) -> None: ...
37
31
  def tzname(self, dt: datetime | None, /) -> str | None:
38
32
  """Retrieve a string containing the abbreviation for the time zone that applies in a zone at a given datetime."""
39
33
  ...
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.24.0",
5
+ "version": "1.25.0",
6
6
  "license": "MIT",
7
7
  "author": {
8
8
  "name": "detachhead"