massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / toml / toml.pyi
diff --git a/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/toml/toml.pyi b/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/toml/toml.pyi
new file mode 100644 (file)
index 0000000..3f8580b
--- /dev/null
@@ -0,0 +1,19 @@
+import sys
+from _typeshed import StrPath, SupportsWrite
+from typing import IO, Any, Mapping, MutableMapping, Text, Type, Union
+
+if sys.version_info >= (3, 6):
+    _PathLike = StrPath
+elif sys.version_info >= (3, 4):
+    import pathlib
+
+    _PathLike = Union[StrPath, pathlib.PurePath]
+else:
+    _PathLike = StrPath
+
+class TomlDecodeError(Exception): ...
+
+def load(f: _PathLike | list[Text] | IO[str], _dict: Type[MutableMapping[str, Any]] = ...) -> MutableMapping[str, Any]: ...
+def loads(s: Text, _dict: Type[MutableMapping[str, Any]] = ...) -> MutableMapping[str, Any]: ...
+def dump(o: Mapping[str, Any], f: SupportsWrite[str]) -> str: ...
+def dumps(o: Mapping[str, Any]) -> str: ...