We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb61f37 commit 6569deaCopy full SHA for 6569dea
1 file changed
stdlib/json/__init__.pyi
@@ -37,7 +37,7 @@ def dump(
37
**kwds: Any,
38
) -> None: ...
39
def loads(
40
- s: str | bytes,
+ s: str | bytes | bytearray,
41
*,
42
cls: type[JSONDecoder] | None = ...,
43
object_hook: Callable[[dict[Any, Any]], Any] | None = ...,
@@ -58,4 +58,4 @@ def load(
58
object_pairs_hook: Callable[[list[tuple[Any, Any]]], Any] | None = ...,
59
60
) -> Any: ...
61
-def detect_encoding(b: bytes) -> str: ... # undocumented
+def detect_encoding(b: bytes | bytearray) -> str: ... # undocumented
0 commit comments