massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / json / encoder.pyi
1 from typing import Any, Callable, Iterator
2
3 def py_encode_basestring(s: str) -> str: ...  # undocumented
4 def py_encode_basestring_ascii(s: str) -> str: ...  # undocumented
5
6 class JSONEncoder:
7     item_separator: str
8     key_separator: str
9
10     skipkeys: bool
11     ensure_ascii: bool
12     check_circular: bool
13     allow_nan: bool
14     sort_keys: bool
15     indent: int
16     def __init__(
17         self,
18         *,
19         skipkeys: bool = ...,
20         ensure_ascii: bool = ...,
21         check_circular: bool = ...,
22         allow_nan: bool = ...,
23         sort_keys: bool = ...,
24         indent: int | None = ...,
25         separators: tuple[str, str] | None = ...,
26         default: Callable[..., Any] | None = ...,
27     ) -> None: ...
28     def default(self, o: Any) -> Any: ...
29     def encode(self, o: Any) -> str: ...
30     def iterencode(self, o: Any, _one_shot: bool = ...) -> Iterator[str]: ...