massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / _json.pyi
1 from typing import Any, Callable
2
3 class make_encoder:
4     sort_keys: Any
5     skipkeys: Any
6     key_separator: Any
7     indent: Any
8     markers: Any
9     default: Any
10     encoder: Any
11     item_separator: Any
12     def __init__(
13         self,
14         markers: dict[int, Any] | None,
15         default: Callable[[Any], Any],
16         encoder: Callable[[str], str],
17         indent: int | None,
18         key_separator: str,
19         item_separator: str,
20         sort_keys: bool,
21         skipkeys: bool,
22         allow_nan: bool,
23     ) -> None: ...
24     def __call__(self, obj: object, _current_indent_level: int) -> Any: ...
25
26 class make_scanner:
27     object_hook: Any
28     object_pairs_hook: Any
29     parse_int: Any
30     parse_constant: Any
31     parse_float: Any
32     strict: bool
33     # TODO: 'context' needs the attrs above (ducktype), but not __call__.
34     def __init__(self, context: make_scanner) -> None: ...
35     def __call__(self, string: str, index: int) -> tuple[Any, int]: ...
36
37 def encode_basestring_ascii(s: str) -> str: ...
38 def scanstring(string: str, end: int, strict: bool = ...) -> tuple[str, int]: ...