mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
Update orjson stub from orjson repository(#3532)
This commit is contained in:
committed by
Sebastian Rittau
parent
39ebd62e71
commit
9b63192390
12
third_party/3/orjson.pyi
vendored
12
third_party/3/orjson.pyi
vendored
@@ -2,13 +2,19 @@
|
||||
|
||||
from typing import Any, Callable, Optional, Union
|
||||
|
||||
__version__ = str
|
||||
|
||||
def dumps(
|
||||
__obj: Any, default: Optional[Callable[[Any], Any]] = ..., option: Optional[int] = ...
|
||||
__obj: Any,
|
||||
default: Optional[Callable[[Any], Any]] = ...,
|
||||
option: Optional[int] = ...,
|
||||
) -> bytes: ...
|
||||
def loads(__obj: Union[bytes, str]) -> Any: ...
|
||||
def loads(__obj: Union[bytes, bytearray, str]) -> Any: ...
|
||||
|
||||
class JSONDecodeError(ValueError): ...
|
||||
class JSONEncodeError(TypeError): ...
|
||||
|
||||
OPT_STRICT_INTEGER: int
|
||||
OPT_SERIALIZE_DATACLASS: int
|
||||
OPT_NAIVE_UTC: int
|
||||
OPT_OMIT_MICROSECONDS: int
|
||||
OPT_STRICT_INTEGER: int
|
||||
|
||||
Reference in New Issue
Block a user