Initial commit: add .gitignore and README
Some checks failed
Tests / test (3.10) (push) Has been cancelled
Tests / test (3.11) (push) Has been cancelled
Tests / test (3.12) (push) Has been cancelled
Tests / lint (push) Has been cancelled
Tests / docker (push) Has been cancelled

This commit is contained in:
defiQUG
2026-02-09 21:51:42 -08:00
commit c052b07662
3146 changed files with 808305 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
def b64encode(s: bytes) -> bytes: ...
def b64decode(s: bytes | str) -> bytes: ...
def urlsafe_b64encode(s: bytes) -> bytes: ...
def urlsafe_b64decode(s: bytes | str) -> bytes: ...

View File

@@ -0,0 +1,21 @@
from mypy_extensions import u8
class ReadBuffer:
def __init__(self, source: bytes) -> None: ...
class WriteBuffer:
def getvalue(self) -> bytes: ...
def write_bool(data: WriteBuffer, value: bool) -> None: ...
def read_bool(data: ReadBuffer) -> bool: ...
def write_str(data: WriteBuffer, value: str) -> None: ...
def read_str(data: ReadBuffer) -> str: ...
def write_bytes(data: WriteBuffer, value: bytes) -> None: ...
def read_bytes(data: ReadBuffer) -> bytes: ...
def write_float(data: WriteBuffer, value: float) -> None: ...
def read_float(data: ReadBuffer) -> float: ...
def write_int(data: WriteBuffer, value: int) -> None: ...
def read_int(data: ReadBuffer) -> int: ...
def write_tag(data: WriteBuffer, value: u8) -> None: ...
def read_tag(data: ReadBuffer) -> u8: ...
def cache_version() -> u8: ...

View File

@@ -0,0 +1,13 @@
from typing import final
from mypy_extensions import i64, u8
@final
class BytesWriter:
def append(self, /, x: int) -> None: ...
def write(self, /, b: bytes | bytearray) -> None: ...
def getvalue(self) -> bytes: ...
def truncate(self, /, size: i64) -> None: ...
def __len__(self) -> i64: ...
def __getitem__(self, /, i: i64) -> u8: ...
def __setitem__(self, /, i: i64, x: u8) -> None: ...