10000 Convert the remaining ujson uses of AnyStr by tjstum · Pull Request #10086 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

Convert the remaining ujson uses of AnyStr #10086

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions stubs/ujson/ujson.pyi
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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): ...
0