-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |