massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / third_party / 2and3 / ujson.pyi
1 # Stubs for ujson\r
2 # See: https://pypi.python.org/pypi/ujson\r
3 from typing import Any, AnyStr, IO, Optional\r
4 \r
5 __version__ = ...  # type: str\r
6 \r
7 def encode(\r
8     obj: Any,\r
9     ensure_ascii: bool = ...,\r
10     double_precision: int = ...,\r
11     encode_html_chars: bool = ...,\r
12     escape_forward_slashes: bool = ...,\r
13     sort_keys: bool = ...,\r
14     indent: int = ...,\r
15 ) -> str: ...\r
16 \r
17 def dumps(\r
18     obj: Any,\r
19     ensure_ascii: bool = ...,\r
20     double_precision: int = ...,\r
21     encode_html_chars: bool = ...,\r
22     escape_forward_slashes: bool = ...,\r
23     sort_keys: bool = ...,\r
24     indent: int = ...,\r
25 ) -> str: ...\r
26 \r
27 def dump(\r
28     obj: Any,\r
29     fp: IO[str],\r
30     ensure_ascii: bool = ...,\r
31     double_precision: int = ...,\r
32     encode_html_chars: bool = ...,\r
33     escape_forward_slashes: bool = ...,\r
34     sort_keys: bool = ...,\r
35     indent: int = ...,\r
36 ) -> None: ...\r
37 \r
38 def decode(\r
39     s: AnyStr,\r
40     precise_float: bool = ...,\r
41 ) -> Any: ...\r
42 \r
43 def loads(\r
44     s: AnyStr,\r
45     precise_float: bool = ...,\r
46 ) -> Any: ...\r
47 \r
48 def load(\r
49     fp: IO[AnyStr],\r
50     precise_float: bool = ...,\r
51 ) -> Any: ...\r