Specify default = ..., positional-only for orjson API (#2936)

This commit is contained in:
ijl
2019-04-27 18:09:26 +00:00
committed by Jelle Zijlstra
parent 4e572ae6a3
commit 5acc22d82a

View File

@@ -3,9 +3,9 @@
from typing import Any, Callable, Optional, Union
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, str]) -> Any: ...
class JSONDecodeError(ValueError): ...
class JSONEncodeError(TypeError): ...