massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / json / decoder.pyi
1 from typing import Any, Callable
2
3 class JSONDecodeError(ValueError):
4     msg: str
5     doc: str
6     pos: int
7     lineno: int
8     colno: int
9     def __init__(self, msg: str, doc: str, pos: int) -> None: ...
10
11 class JSONDecoder:
12     object_hook: Callable[[dict[str, Any]], Any]
13     parse_float: Callable[[str], Any]
14     parse_int: Callable[[str], Any]
15     parse_constant: Callable[[str], Any]
16     strict: bool
17     object_pairs_hook: Callable[[list[tuple[str, Any]]], Any]
18     def __init__(
19         self,
20         *,
21         object_hook: Callable[[dict[str, Any]], Any] | None = ...,
22         parse_float: Callable[[str], Any] | None = ...,
23         parse_int: Callable[[str], Any] | None = ...,
24         parse_constant: Callable[[str], Any] | None = ...,
25         strict: bool = ...,
26         object_pairs_hook: Callable[[list[tuple[str, Any]]], Any] | None = ...,
27     ) -> None: ...
28     def decode(self, s: str, _w: Callable[..., Any] = ...) -> Any: ...  # _w is undocumented
29     def raw_decode(self, s: str, idx: int = ...) -> tuple[Any, int]: ...