Convert the remaining ujson uses of AnyStr (#10086)

Followup from #10081
This commit is contained in:
Tim Stumbaugh
2023-05-01 09:24:25 -06:00
committed by GitHub
parent e816acffdd
commit f5a870b987

View File

@@ -1,6 +1,6 @@
from _typeshed import Incomplete, SupportsRead, SupportsWrite
from collections.abc import Callable
from typing import Any, AnyStr
from typing import Any
__version__: str
@@ -45,8 +45,8 @@ def dump(
default: Callable[[Incomplete], Incomplete] | None = None,
separators: tuple[str, str] | None = None,
) -> None: ...
def decode(s: AnyStr, precise_float: bool = ...) -> Any: ...
def loads(s: AnyStr, precise_float: bool = ...) -> Any: ...
def load(fp: SupportsRead[str | bytes], precise_float: bool = ...) -> Any: ...
def decode(s: str | bytes | bytearray, precise_float: bool = ...) -> Any: ...
def loads(s: str | bytes | bytearray, precise_float: bool = ...) -> Any: ...
def load(fp: SupportsRead[str | bytes | bytearray], precise_float: bool = ...) -> Any: ...
class JSONDecodeError(ValueError): ...