File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11from _typeshed import Incomplete , SupportsRead , SupportsWrite
22from collections .abc import Callable
3- from typing import Any , AnyStr
3+ from typing import Any
44
55__version__ : str
66
@@ -45,8 +45,8 @@ def dump(
4545 default : Callable [[Incomplete ], Incomplete ] | None = None ,
4646 separators : tuple [str , str ] | None = None ,
4747) -> None : ...
48- def decode (s : AnyStr , precise_float : bool = ...) -> Any : ...
49- def loads (s : AnyStr , precise_float : bool = ...) -> Any : ...
50- def load (fp : SupportsRead [str | bytes ], precise_float : bool = ...) -> Any : ...
48+ def decode (s : str | bytes | bytearray , precise_float : bool = ...) -> Any : ...
49+ def loads (s : str | bytes | bytearray , precise_float : bool = ...) -> Any : ...
50+ def load (fp : SupportsRead [str | bytes | bytearray ], precise_float : bool = ...) -> Any : ...
5151
5252class JSONDecodeError (ValueError ): ...
You can’t perform that action at this time.
0 commit comments