File: __init__.pyi

package info (click to toggle)
u-msgpack-python 2.8.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 176 kB
  • sloc: python: 1,210; makefile: 6
file content (41 lines) | stat: -rw-r--r-- 1,275 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
from typing import Any

__version__: str

version: tuple[int, int, int]

def pack(obj, fp, **options) -> None: ...
def packb(obj, **options) -> bytes: ...
def dump(obj, fp, **options) -> None: ...
def dumps(obj, **options) -> bytes: ...

def unpackb(s: bytes | bytearray, **options) -> Any: ...
def unpack(fp, **options) -> Any: ...
def loads(s: bytes | bytearray, **options) -> Any: ...
def load(fp, **options) -> Any: ...

class Ext:
    type: int
    data: bytes
    def __init__(self, type: int, data: bytes) -> None: ...
    def __eq__(self, other) -> bool: ...
    def __ne__(self, other) -> bool: ...
    def __hash__(self) -> int: ...

class InvalidString(bytes): ...

def ext_serializable(ext_type: int): ...

class PackException(Exception): ...
class UnpackException(Exception): ...
class UnsupportedTypeException(PackException): ...
class InsufficientDataException(UnpackException): ...
class InvalidStringException(UnpackException): ...
class UnsupportedTimestampException(UnpackException): ...
class ReservedCodeException(UnpackException): ...
class UnhashableKeyException(UnpackException): ...
class DuplicateKeyException(UnpackException): ...
KeyNotPrimitiveException = UnhashableKeyException
KeyDuplicateException = DuplicateKeyException

compatibility: bool