trezor-core/mocks/ustruct.py

8 lines
303 B
Python

from typing import *
def calcsize(fmt: str) -> int: ...
def pack(fmt: str, *args: Any) -> bytes: ...
def pack_into(fmt: str, buffer: bytearray, offset: int, *args: Any) -> None: ...
def unpack(fmt: str, data: bytes) -> Tuple: ...
def unpack_from(fmt: str, data: bytes, offset: int = ...) -> Tuple: ...