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.
- package/dist/pyright-langserver.js +1 -1
- package/dist/pyright-langserver.js.LICENSE.txt +42 -0
- 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/stdlib/_asyncio.pyi +3 -25
- package/dist/typeshed-fallback/stdlib/_bisect.pyi +4 -44
- package/dist/typeshed-fallback/stdlib/_bootlocale.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/_csv.pyi +2 -16
- package/dist/typeshed-fallback/stdlib/_dbm.pyi +1 -13
- package/dist/typeshed-fallback/stdlib/_decimal.pyi +1 -8
- package/dist/typeshed-fallback/stdlib/_dummy_thread.pyi +33 -33
- package/dist/typeshed-fallback/stdlib/_dummy_threading.pyi +164 -180
- package/dist/typeshed-fallback/stdlib/_gdbm.pyi +1 -39
- package/dist/typeshed-fallback/stdlib/_hashlib.pyi +7 -28
- package/dist/typeshed-fallback/stdlib/_imp.pyi +1 -3
- package/dist/typeshed-fallback/stdlib/_msi.pyi +92 -94
- package/dist/typeshed-fallback/stdlib/_sqlite3.pyi +6 -48
- package/dist/typeshed-fallback/stdlib/_ssl.pyi +1 -8
- package/dist/typeshed-fallback/stdlib/_thread.pyi +1 -8
- package/dist/typeshed-fallback/stdlib/_warnings.pyi +2 -6
- package/dist/typeshed-fallback/stdlib/aifc.pyi +91 -91
- package/dist/typeshed-fallback/stdlib/array.pyi +3 -17
- package/dist/typeshed-fallback/stdlib/asynchat.pyi +21 -21
- package/dist/typeshed-fallback/stdlib/asyncio/sslproto.pyi +4 -23
- package/dist/typeshed-fallback/stdlib/asyncore.pyi +90 -90
- package/dist/typeshed-fallback/stdlib/audioop.pyi +43 -95
- package/dist/typeshed-fallback/stdlib/binascii.pyi +5 -15
- package/dist/typeshed-fallback/stdlib/binhex.pyi +45 -45
- package/dist/typeshed-fallback/stdlib/builtins.pyi +8 -106
- package/dist/typeshed-fallback/stdlib/cgi.pyi +118 -118
- package/dist/typeshed-fallback/stdlib/cgitb.pyi +32 -32
- package/dist/typeshed-fallback/stdlib/chunk.pyi +20 -20
- package/dist/typeshed-fallback/stdlib/datetime.pyi +4 -12
- package/dist/typeshed-fallback/stdlib/distutils/__init__.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/distutils/_msvccompiler.pyi +13 -13
- package/dist/typeshed-fallback/stdlib/distutils/archive_util.pyi +35 -35
- package/dist/typeshed-fallback/stdlib/distutils/bcppcompiler.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/distutils/ccompiler.pyi +176 -176
- package/dist/typeshed-fallback/stdlib/distutils/cmd.pyi +229 -229
- package/dist/typeshed-fallback/stdlib/distutils/command/__init__.pyi +48 -48
- package/dist/typeshed-fallback/stdlib/distutils/command/bdist.pyi +27 -27
- package/dist/typeshed-fallback/stdlib/distutils/command/bdist_dumb.pyi +22 -22
- package/dist/typeshed-fallback/stdlib/distutils/command/bdist_msi.pyi +46 -46
- package/dist/typeshed-fallback/stdlib/distutils/command/bdist_rpm.pyi +53 -53
- package/dist/typeshed-fallback/stdlib/distutils/command/bdist_wininst.pyi +16 -16
- package/dist/typeshed-fallback/stdlib/distutils/command/build.pyi +34 -34
- package/dist/typeshed-fallback/stdlib/distutils/command/build_clib.pyi +29 -29
- package/dist/typeshed-fallback/stdlib/distutils/command/build_ext.pyi +52 -52
- package/dist/typeshed-fallback/stdlib/distutils/command/build_py.pyi +45 -45
- package/dist/typeshed-fallback/stdlib/distutils/command/build_scripts.pyi +25 -25
- package/dist/typeshed-fallback/stdlib/distutils/command/check.pyi +40 -40
- package/dist/typeshed-fallback/stdlib/distutils/command/clean.pyi +18 -18
- package/dist/typeshed-fallback/stdlib/distutils/command/config.pyi +84 -84
- package/dist/typeshed-fallback/stdlib/distutils/command/install.pyi +71 -71
- package/dist/typeshed-fallback/stdlib/distutils/command/install_data.pyi +20 -20
- package/dist/typeshed-fallback/stdlib/distutils/command/install_egg_info.pyi +19 -19
- package/dist/typeshed-fallback/stdlib/distutils/command/install_headers.pyi +17 -17
- package/dist/typeshed-fallback/stdlib/distutils/command/install_lib.pyi +26 -26
- package/dist/typeshed-fallback/stdlib/distutils/command/install_scripts.pyi +19 -19
- package/dist/typeshed-fallback/stdlib/distutils/command/register.pyi +21 -21
- package/dist/typeshed-fallback/stdlib/distutils/command/sdist.pyi +45 -45
- package/dist/typeshed-fallback/stdlib/distutils/command/upload.pyi +18 -18
- package/dist/typeshed-fallback/stdlib/distutils/config.pyi +17 -17
- package/dist/typeshed-fallback/stdlib/distutils/core.pyi +58 -58
- package/dist/typeshed-fallback/stdlib/distutils/cygwinccompiler.pyi +20 -20
- package/dist/typeshed-fallback/stdlib/distutils/debug.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/distutils/dep_util.pyi +14 -14
- package/dist/typeshed-fallback/stdlib/distutils/dir_util.pyi +23 -23
- package/dist/typeshed-fallback/stdlib/distutils/dist.pyi +317 -317
- package/dist/typeshed-fallback/stdlib/distutils/errors.pyi +19 -19
- package/dist/typeshed-fallback/stdlib/distutils/extension.pyi +36 -36
- package/dist/typeshed-fallback/stdlib/distutils/fancy_getopt.pyi +34 -34
- package/dist/typeshed-fallback/stdlib/distutils/file_util.pyi +38 -38
- package/dist/typeshed-fallback/stdlib/distutils/filelist.pyi +58 -58
- package/dist/typeshed-fallback/stdlib/distutils/log.pyi +26 -26
- package/dist/typeshed-fallback/stdlib/distutils/msvccompiler.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/distutils/spawn.pyi +10 -10
- package/dist/typeshed-fallback/stdlib/distutils/sysconfig.pyi +33 -33
- package/dist/typeshed-fallback/stdlib/distutils/text_file.pyi +21 -21
- package/dist/typeshed-fallback/stdlib/distutils/unixccompiler.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/distutils/util.pyi +53 -53
- package/dist/typeshed-fallback/stdlib/distutils/version.pyi +36 -38
- package/dist/typeshed-fallback/stdlib/dummy_threading.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/encodings/mac_centeuro.pyi +21 -21
- package/dist/typeshed-fallback/stdlib/formatter.pyi +88 -88
- package/dist/typeshed-fallback/stdlib/hmac.pyi +2 -30
- package/dist/typeshed-fallback/stdlib/imghdr.pyi +17 -17
- package/dist/typeshed-fallback/stdlib/imp.pyi +62 -62
- package/dist/typeshed-fallback/stdlib/importlib/metadata/__init__.pyi +7 -36
- package/dist/typeshed-fallback/stdlib/lib2to3/btm_matcher.pyi +28 -28
- package/dist/typeshed-fallback/stdlib/lib2to3/fixer_base.pyi +42 -42
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_apply.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_asserts.pyi +10 -10
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_basestring.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_buffer.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_dict.pyi +16 -16
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_except.pyi +14 -14
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_exec.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_execfile.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_exitfunc.pyi +13 -13
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_filter.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_funcattrs.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_future.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_getcwdu.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_has_key.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_idioms.pyi +15 -15
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_import.pyi +16 -16
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_imports.pyi +21 -21
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_imports2.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_input.pyi +11 -11
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_intern.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_isinstance.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_itertools.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_itertools_imports.pyi +7 -7
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_long.pyi +7 -7
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_map.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_metaclass.pyi +17 -17
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_methodattrs.pyi +10 -10
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_ne.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_next.pyi +19 -19
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_nonzero.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_numliterals.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_operator.pyi +12 -12
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_paren.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_print.pyi +12 -12
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_raise.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_raw_input.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_reduce.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_reload.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_renames.pyi +17 -17
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_repr.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_set_literal.pyi +7 -7
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_standarderror.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_sys_exc.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_throw.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_tuple_params.pyi +17 -17
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_types.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_unicode.pyi +12 -12
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_urllib.pyi +15 -15
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_ws_comma.pyi +12 -12
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_xrange.pyi +20 -20
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_xreadlines.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/lib2to3/fixes/fix_zip.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/lib2to3/main.pyi +42 -42
- package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/__init__.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/driver.pyi +27 -27
- package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/grammar.pyi +24 -24
- package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/literals.pyi +7 -7
- package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/parse.pyi +30 -30
- package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/pgen.pyi +50 -50
- package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/token.pyi +69 -69
- package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/tokenize.pyi +96 -96
- package/dist/typeshed-fallback/stdlib/lib2to3/pygram.pyi +114 -114
- package/dist/typeshed-fallback/stdlib/lib2to3/pytree.pyi +117 -127
- package/dist/typeshed-fallback/stdlib/lib2to3/refactor.pyi +82 -82
- package/dist/typeshed-fallback/stdlib/mailcap.pyi +11 -11
- package/dist/typeshed-fallback/stdlib/marshal.pyi +4 -52
- package/dist/typeshed-fallback/stdlib/math.pyi +2 -6
- package/dist/typeshed-fallback/stdlib/msilib/__init__.pyi +177 -177
- package/dist/typeshed-fallback/stdlib/msilib/schema.pyi +94 -94
- package/dist/typeshed-fallback/stdlib/msilib/sequence.pyi +13 -13
- package/dist/typeshed-fallback/stdlib/msilib/text.pyi +7 -7
- package/dist/typeshed-fallback/stdlib/nis.pyi +4 -31
- package/dist/typeshed-fallback/stdlib/nntplib.pyi +125 -125
- package/dist/typeshed-fallback/stdlib/os/__init__.pyi +1 -8
- package/dist/typeshed-fallback/stdlib/parser.pyi +24 -55
- package/dist/typeshed-fallback/stdlib/pipes.pyi +16 -16
- package/dist/typeshed-fallback/stdlib/smtpd.pyi +91 -91
- package/dist/typeshed-fallback/stdlib/sndhdr.pyi +14 -14
- package/dist/typeshed-fallback/stdlib/spwd.pyi +13 -66
- package/dist/typeshed-fallback/stdlib/sqlite3/__init__.pyi +2 -6
- package/dist/typeshed-fallback/stdlib/ssl.pyi +0 -4
- package/dist/typeshed-fallback/stdlib/sunau.pyi +86 -86
- package/dist/typeshed-fallback/stdlib/symbol.pyi +93 -93
- package/dist/typeshed-fallback/stdlib/sys/__init__.pyi +4 -40
- package/dist/typeshed-fallback/stdlib/telnetlib.pyi +123 -123
- package/dist/typeshed-fallback/stdlib/tkinter/tix.pyi +299 -299
- package/dist/typeshed-fallback/stdlib/types.pyi +2 -6
- package/dist/typeshed-fallback/stdlib/typing.pyi +2 -6
- package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +544 -559
- package/dist/typeshed-fallback/stdlib/unittest/__init__.pyi +1 -6
- package/dist/typeshed-fallback/stdlib/uu.pyi +13 -13
- package/dist/typeshed-fallback/stdlib/xdrlib.pyi +57 -57
- package/dist/typeshed-fallback/stdlib/xxlimited.pyi +1 -3
- package/dist/typeshed-fallback/stdlib/zipimport.pyi +0 -29
- package/dist/typeshed-fallback/stdlib/zlib.pyi +1 -10
- package/dist/typeshed-fallback/stdlib/zoneinfo/__init__.pyi +3 -9
- 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]: ...
|
|
@@ -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.
|
|
5
|
+
"version": "1.25.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "detachhead"
|