1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 23:48:12 +00:00
trezor-firmware/mocks/ustruct.pyi
2017-06-14 19:27:02 +02:00

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: ...