massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 3 / json / encoder.pyi
1 from typing import Any, Callable, Iterator, Optional, Tuple\r
2 \r
3 class JSONEncoder:\r
4     item_separator = ...  # type: str\r
5     key_separator = ...  # type: str\r
6 \r
7     skipkeys = ...  # type: bool\r
8     ensure_ascii = ...  # type: bool\r
9     check_circular = ...  # type: bool\r
10     allow_nan = ...  # type: bool\r
11     sort_keys = ...  # type: bool\r
12     indent = ...  # type: int\r
13 \r
14     def __init__(self, skipkeys: bool = ..., ensure_ascii: bool = ...,\r
15             check_circular: bool = ..., allow_nan: bool = ..., sort_keys: bool = ...,\r
16             indent: Optional[int] = ..., separators: Optional[Tuple[str, str]] = ..., default: Optional[Callable] = ...) -> None: ...\r
17 \r
18     def default(self, o: Any) -> Any: ...\r
19     def encode(self, o: Any) -> str: ...\r
20     def iterencode(self, o: Any, _one_shot: bool = ...) -> Iterator[str]: ...\r