8000 Convert the remaining ujson uses of AnyStr (#10086) · python/typeshed@f5a870b · GitHub
[go: up one dir, main page]

Skip to content

Commit f5a870b

Browse files
authored
Convert the remaining ujson uses of AnyStr (#10086)
Followup from #10081
1 parent e816acf commit f5a870b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stubs/ujson/ujson.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from _typeshed import Incomplete, SupportsRead, SupportsWrite
22
from 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

5252
class JSONDecodeError(ValueError): ...

0 commit comments

Comments
 (0)
0