massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / json / encoder.pyi
diff --git a/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stdlib/json/encoder.pyi b/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stdlib/json/encoder.pyi
new file mode 100644 (file)
index 0000000..9557a96
--- /dev/null
@@ -0,0 +1,30 @@
+from typing import Any, Callable, Iterator
+
+def py_encode_basestring(s: str) -> str: ...  # undocumented
+def py_encode_basestring_ascii(s: str) -> str: ...  # undocumented
+
+class JSONEncoder:
+    item_separator: str
+    key_separator: str
+
+    skipkeys: bool
+    ensure_ascii: bool
+    check_circular: bool
+    allow_nan: bool
+    sort_keys: bool
+    indent: int
+    def __init__(
+        self,
+        *,
+        skipkeys: bool = ...,
+        ensure_ascii: bool = ...,
+        check_circular: bool = ...,
+        allow_nan: bool = ...,
+        sort_keys: bool = ...,
+        indent: int | None = ...,
+        separators: tuple[str, str] | None = ...,
+        default: Callable[..., Any] | None = ...,
+    ) -> None: ...
+    def default(self, o: Any) -> Any: ...
+    def encode(self, o: Any) -> str: ...
+    def iterencode(self, o: Any, _one_shot: bool = ...) -> Iterator[str]: ...