massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 3 / json / decoder.pyi
1 import sys\r
2 from typing import Any, Callable, Dict, List, Optional, Tuple\r
3 \r
4 if sys.version_info >= (3, 5):\r
5     class JSONDecodeError(ValueError):\r
6         msg: str\r
7         doc: str\r
8         pos: int\r
9         lineno: int\r
10         colno: int\r
11         def __init__(self, msg: str, doc: str, pos: int) -> None: ...\r
12 \r
13 class JSONDecoder:\r
14     object_hook = ...  # type: Callable[[Dict[str, Any]], Any]\r
15     parse_float = ...  # type: Callable[[str], Any]\r
16     parse_int = ...  # type: Callable[[str], Any]\r
17     parse_constant = ...  # Callable[[str], Any]\r
18     strict = ...  # type: bool\r
19     object_pairs_hook = ...  # type: Callable[[List[Tuple[str, Any]]], Any]\r
20 \r
21     def __init__(self, object_hook: Optional[Callable[[Dict[str, Any]], Any]] = ...,\r
22             parse_float: Optional[Callable[[str], Any]] = ...,\r
23             parse_int: Optional[Callable[[str], Any]] = ...,\r
24             parse_constant: Optional[Callable[[str], Any]] = ...,\r
25             strict: bool = ...,\r
26             object_pairs_hook: Optional[Callable[[List[Tuple[str, Any]]], Any]] = ...) -> None: ...\r
27     def decode(self, s: str) -> Any: ...\r
28     def raw_decode(self, s: str, idx: int = ...) -> Tuple[Any, int]: ...\r