mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-15 08:17:07 +08:00
Convert the remaining ujson uses of AnyStr (#10086)
Followup from #10081
This commit is contained in:
@@ -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): ...
|
||||
|
||||
Reference in New Issue
Block a user