Files
trezor-firmware/core/mocks/ustruct.pyi
matejcik c3e6e7a25e style(core): update types to pyright 1.1.404
Majority by volume is resolving the byte types promotion problem, which
pyright stopped ignoring
2025-09-22 23:38:20 +02:00

9 lines
336 B
Python

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