[ujson] Update stubs with new features (#10035)

This commit is contained in:
Daniel Bergamin
2023-04-12 23:47:37 +10:00
committed by GitHub
parent 731205772a
commit be4f64cc4f

View File

@@ -1,3 +1,5 @@
from _typeshed import Incomplete
from collections.abc import Callable
from typing import IO, Any, AnyStr
__version__: str
@@ -10,6 +12,10 @@ def encode(
escape_forward_slashes: bool = ...,
sort_keys: bool = ...,
indent: int = ...,
allow_nan: bool = ...,
reject_bytes: bool = ...,
default: Callable[[Incomplete], Incomplete] | None = None,
separators: tuple[str, str] | None = None,
) -> str: ...
def dumps(
obj: Any,
@@ -19,6 +25,10 @@ def dumps(
escape_forward_slashes: bool = ...,
sort_keys: bool = ...,
indent: int = ...,
allow_nan: bool = ...,
reject_bytes: bool = ...,
default: Callable[[Incomplete], Incomplete] | None = None,
separators: tuple[str, str] | None = None,
) -> str: ...
def dump(
obj: Any,
@@ -29,6 +39,10 @@ def dump(
escape_forward_slashes: bool = ...,
sort_keys: bool = ...,
indent: int = ...,
allow_nan: bool = ...,
reject_bytes: bool = ...,
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: ...