Update orjson stub from orjson repository(#3532)

This commit is contained in:
Dylan Anthony
2019-12-06 09:59:27 -05:00
committed by Sebastian Rittau
parent 39ebd62e71
commit 9b63192390

View File

@@ -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