massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 3 / json / decoder.pyi
diff --git a/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/3/json/decoder.pyi b/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/3/json/decoder.pyi
new file mode 100644 (file)
index 0000000..d33d760
--- /dev/null
@@ -0,0 +1,28 @@
+import sys\r
+from typing import Any, Callable, Dict, List, Optional, Tuple\r
+\r
+if sys.version_info >= (3, 5):\r
+    class JSONDecodeError(ValueError):\r
+        msg: str\r
+        doc: str\r
+        pos: int\r
+        lineno: int\r
+        colno: int\r
+        def __init__(self, msg: str, doc: str, pos: int) -> None: ...\r
+\r
+class JSONDecoder:\r
+    object_hook = ...  # type: Callable[[Dict[str, Any]], Any]\r
+    parse_float = ...  # type: Callable[[str], Any]\r
+    parse_int = ...  # type: Callable[[str], Any]\r
+    parse_constant = ...  # Callable[[str], Any]\r
+    strict = ...  # type: bool\r
+    object_pairs_hook = ...  # type: Callable[[List[Tuple[str, Any]]], Any]\r
+\r
+    def __init__(self, object_hook: Optional[Callable[[Dict[str, Any]], Any]] = ...,\r
+            parse_float: Optional[Callable[[str], Any]] = ...,\r
+            parse_int: Optional[Callable[[str], Any]] = ...,\r
+            parse_constant: Optional[Callable[[str], Any]] = ...,\r
+            strict: bool = ...,\r
+            object_pairs_hook: Optional[Callable[[List[Tuple[str, Any]]], Any]] = ...) -> None: ...\r
+    def decode(self, s: str) -> Any: ...\r
+    def raw_decode(self, s: str, idx: int = ...) -> Tuple[Any, int]: ...\r