diff --git a/stubs/ujson/ujson.pyi b/stubs/ujson/ujson.pyi index b2528a9d0..9a8349668 100644 --- a/stubs/ujson/ujson.pyi +++ b/stubs/ujson/ujson.pyi @@ -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: ...