trezor-core/mocks/ustruct.py

8 lines
303 B
Python
Raw Permalink Normal View History

2017-06-14 10:27:02 -07:00
from typing import *
2017-06-14 03:26:02 -07:00
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: ...