mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Update json.pyi (#957)
According to https://docs.python.org/3/library/json.html#json.loads, the s parameter can be "a str, bytes or bytearray instance".
This commit is contained in:
committed by
Jukka Lehtosalo
parent
59789b8a3e
commit
58efa1fe55
@@ -31,7 +31,7 @@ def dump(obj: Any,
|
||||
sort_keys: bool = ...,
|
||||
**kwds: Any) -> None: ...
|
||||
|
||||
def loads(s: str,
|
||||
def loads(s: Union[str, bytes, bytearray],
|
||||
encoding: Any = ..., # ignored and deprecated
|
||||
cls: Any = ...,
|
||||
object_hook: Optional[Callable[[Dict], Any]] = ...,
|
||||
|
||||
Reference in New Issue
Block a user