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:
Michael Walter
2017-02-27 10:51:41 -07:00
committed by Jukka Lehtosalo
parent 59789b8a3e
commit 58efa1fe55

View File

@@ -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]] = ...,