All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.python.types.typeshed.stdlib.2._struct.pyi Maven / Gradle / Ivy

There is a newer version: 4.17.0.14845
Show newest version
"""Stub file for the '_struct' module."""

from typing import Any, AnyStr, Tuple

class error(Exception): ...

class Struct(object):
    size: int
    format: str

    def __init__(self, fmt: str) -> None: ...
    def pack_into(self, buffer: bytearray, offset: int, obj: Any) -> None: ...
    def pack(self, *args) -> str: ...
    def unpack(self, s: str) -> Tuple[Any, ...]: ...
    def unpack_from(self, buffer: bytearray, offset: int = ...) -> Tuple[Any, ...]: ...

def _clearcache() -> None: ...
def calcsize(fmt: str) -> int: ...
def pack(fmt: AnyStr, obj: Any) -> str: ...
def pack_into(fmt: AnyStr, buffer: bytearray, offset: int, obj: Any) -> None: ...
def unpack(fmt: AnyStr, data: str) -> Tuple[Any, ...]: ...
def unpack_from(fmt: AnyStr, buffer: bytearray, offset: int = ...) -> Tuple[Any, ...]: ...




© 2015 - 2024 Weber Informatics LLC | Privacy Policy