mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
Specify default = ..., positional-only for orjson API (#2936)
This commit is contained in:
4
third_party/3/orjson.pyi
vendored
4
third_party/3/orjson.pyi
vendored
@@ -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): ...
|
||||
|
||||
Reference in New Issue
Block a user