Changed code to support older Python versions
This commit is contained in:
parent
eb92d2d36f
commit
582458cdd0
5027 changed files with 794942 additions and 4 deletions
32
venv/lib/python3.11/site-packages/orjson/__init__.pyi
Normal file
32
venv/lib/python3.11/site-packages/orjson/__init__.pyi
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
import json
|
||||
from typing import Any, Callable
|
||||
|
||||
__version__: str
|
||||
|
||||
def dumps(
|
||||
__obj: Any,
|
||||
default: Callable[[Any], Any] | None = ...,
|
||||
option: int | None = ...,
|
||||
) -> bytes: ...
|
||||
def loads(__obj: bytes | bytearray | memoryview | str) -> Any: ...
|
||||
|
||||
class JSONDecodeError(json.JSONDecodeError): ...
|
||||
class JSONEncodeError(TypeError): ...
|
||||
|
||||
class Fragment(tuple):
|
||||
contents: bytes | str
|
||||
|
||||
OPT_APPEND_NEWLINE: int
|
||||
OPT_INDENT_2: int
|
||||
OPT_NAIVE_UTC: int
|
||||
OPT_NON_STR_KEYS: int
|
||||
OPT_OMIT_MICROSECONDS: int
|
||||
OPT_PASSTHROUGH_DATACLASS: int
|
||||
OPT_PASSTHROUGH_DATETIME: int
|
||||
OPT_PASSTHROUGH_SUBCLASS: int
|
||||
OPT_SERIALIZE_DATACLASS: int
|
||||
OPT_SERIALIZE_NUMPY: int
|
||||
OPT_SERIALIZE_UUID: int
|
||||
OPT_SORT_KEYS: int
|
||||
OPT_STRICT_INTEGER: int
|
||||
OPT_UTC_Z: int
|
||||
Loading…
Add table
Add a link
Reference in a new issue