mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
Update orjson.pyi from upstream (#4405)
https://github.com/ijl/orjson/blob/master/orjson.pyi Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
6
third_party/3/orjson.pyi
vendored
6
third_party/3/orjson.pyi
vendored
@@ -1,6 +1,6 @@
|
||||
from typing import Any, Callable, Optional, Union
|
||||
|
||||
__version__ = str
|
||||
__version__: str
|
||||
|
||||
def dumps(__obj: Any, default: Optional[Callable[[Any], Any]] = ..., option: Optional[int] = ...,) -> bytes: ...
|
||||
def loads(__obj: Union[bytes, bytearray, str]) -> Any: ...
|
||||
@@ -8,10 +8,14 @@ def loads(__obj: Union[bytes, bytearray, str]) -> Any: ...
|
||||
class JSONDecodeError(ValueError): ...
|
||||
class JSONEncodeError(TypeError): ...
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user