From 12cf076118570eebbff08c6b3090e0d4798447a1 Mon Sep 17 00:00:00 2001 From: cyfraeviolae Date: Wed, 3 Apr 2024 03:17:55 -0400 Subject: no venv --- venv/lib/python3.11/site-packages/msgspec/json.pyi | 113 --------------------- 1 file changed, 113 deletions(-) delete mode 100644 venv/lib/python3.11/site-packages/msgspec/json.pyi (limited to 'venv/lib/python3.11/site-packages/msgspec/json.pyi') diff --git a/venv/lib/python3.11/site-packages/msgspec/json.pyi b/venv/lib/python3.11/site-packages/msgspec/json.pyi deleted file mode 100644 index 3b8b7e5..0000000 --- a/venv/lib/python3.11/site-packages/msgspec/json.pyi +++ /dev/null @@ -1,113 +0,0 @@ -from collections.abc import Iterable -from typing import ( - Any, - Callable, - Dict, - Generic, - Iterable, - Literal, - Optional, - Tuple, - Type, - TypeVar, - Union, - overload, -) - -T = TypeVar("T") - -enc_hook_sig = Optional[Callable[[Any], Any]] -dec_hook_sig = Optional[Callable[[type, Any], Any]] -float_hook_sig = Optional[Callable[[str], Any]] -schema_hook_sig = Optional[Callable[[type], dict[str, Any]]] - -class Encoder: - enc_hook: enc_hook_sig - decimal_format: Literal["string", "number"] - uuid_format: Literal["canonical", "hex"] - order: Literal[None, "deterministic", "sorted"] - - def __init__( - self, - *, - enc_hook: enc_hook_sig = None, - decimal_format: Literal["string", "number"] = "string", - uuid_format: Literal["canonical", "hex"] = "canonical", - order: Literal[None, "deterministic", "sorted"] = None, - ): ... - def encode(self, obj: Any) -> bytes: ... - def encode_lines(self, items: Iterable) -> bytes: ... - def encode_into( - self, obj: Any, buffer: bytearray, offset: Optional[int] = 0 - ) -> None: ... - -class Decoder(Generic[T]): - type: Type[T] - strict: bool - dec_hook: dec_hook_sig - float_hook: float_hook_sig - - @overload - def __init__( - self: Decoder[Any], - *, - strict: bool = True, - dec_hook: dec_hook_sig = None, - float_hook: float_hook_sig = None, - ) -> None: ... - @overload - def __init__( - self: Decoder[T], - type: Type[T] = ..., - *, - strict: bool = True, - dec_hook: dec_hook_sig = None, - float_hook: float_hook_sig = None, - ) -> None: ... - @overload - def __init__( - self: Decoder[Any], - type: Any = ..., - *, - strict: bool = True, - dec_hook: dec_hook_sig = None, - float_hook: float_hook_sig = None, - ) -> None: ... - def decode(self, data: Union[bytes, str]) -> T: ... - def decode_lines(self, data: Union[bytes, str]) -> list[T]: ... - -@overload -def decode( - buf: Union[bytes, str], - *, - strict: bool = True, - dec_hook: dec_hook_sig = None, -) -> Any: ... -@overload -def decode( - buf: Union[bytes, str], - *, - type: Type[T] = ..., - strict: bool = True, - dec_hook: dec_hook_sig = None, -) -> T: ... -@overload -def decode( - buf: Union[bytes, str], - *, - type: Any = ..., - strict: bool = True, - dec_hook: dec_hook_sig = None, -) -> Any: ... -def encode(obj: Any, *, enc_hook: enc_hook_sig = None, order: Literal[None, "deterministic", "sorted"] = None) -> bytes: ... -def schema(type: Any, *, schema_hook: schema_hook_sig = None) -> Dict[str, Any]: ... -def schema_components( - types: Iterable[Any], - *, - schema_hook: schema_hook_sig = None, - ref_template: str = "#/$defs/{name}" -) -> Tuple[Tuple[Dict[str, Any], ...], Dict[str, Any]]: ... -@overload -def format(buf: str, *, indent: int = 2) -> str: ... -@overload -def format(buf: bytes, *, indent: int = 2) -> bytes: ... -- cgit v1.2.3