massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / orjson / orjson.pyi
1 from collections.abc import Callable
2 from typing import Any
3
4 __version__: str
5
6 def dumps(__obj: Any, default: Callable[[Any], Any] | None = ..., option: int | None = ...) -> bytes: ...
7 def loads(__obj: bytes | str) -> Any: ...
8
9 class JSONDecodeError(ValueError): ...
10 class JSONEncodeError(TypeError): ...
11
12 OPT_APPEND_NEWLINE: int
13 OPT_INDENT_2: int
14 OPT_NAIVE_UTC: int
15 OPT_NON_STR_KEYS: int
16 OPT_OMIT_MICROSECONDS: int
17 OPT_PASSTHROUGH_DATACLASS: int
18 OPT_PASSTHROUGH_DATETIME: int
19 OPT_PASSTHROUGH_SUBCLASS: int
20 OPT_SERIALIZE_DATACLASS: int
21 OPT_SERIALIZE_NUMPY: int
22 OPT_SERIALIZE_UUID: int
23 OPT_SORT_KEYS: int
24 OPT_STRICT_INTEGER: int
25 OPT_UTC_Z: int