massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / ujson / ujson.pyi
1 from typing import IO, Any, AnyStr
2
3 __version__: str
4
5 def encode(
6     obj: Any,
7     ensure_ascii: bool = ...,
8     double_precision: int = ...,
9     encode_html_chars: bool = ...,
10     escape_forward_slashes: bool = ...,
11     sort_keys: bool = ...,
12     indent: int = ...,
13 ) -> str: ...
14 def dumps(
15     obj: Any,
16     ensure_ascii: bool = ...,
17     double_precision: int = ...,
18     encode_html_chars: bool = ...,
19     escape_forward_slashes: bool = ...,
20     sort_keys: bool = ...,
21     indent: int = ...,
22 ) -> str: ...
23 def dump(
24     obj: Any,
25     fp: IO[str],
26     ensure_ascii: bool = ...,
27     double_precision: int = ...,
28     encode_html_chars: bool = ...,
29     escape_forward_slashes: bool = ...,
30     sort_keys: bool = ...,
31     indent: int = ...,
32 ) -> None: ...
33 def decode(s: AnyStr, precise_float: bool = ...) -> Any: ...
34 def loads(s: AnyStr, precise_float: bool = ...) -> Any: ...
35 def load(fp: IO[AnyStr], precise_float: bool = ...) -> Any: ...