massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / toml / toml.pyi
1 import sys
2 from _typeshed import StrPath, SupportsWrite
3 from typing import IO, Any, Mapping, MutableMapping, Text, Type, Union
4
5 if sys.version_info >= (3, 6):
6     _PathLike = StrPath
7 elif sys.version_info >= (3, 4):
8     import pathlib
9
10     _PathLike = Union[StrPath, pathlib.PurePath]
11 else:
12     _PathLike = StrPath
13
14 class TomlDecodeError(Exception): ...
15
16 def load(f: _PathLike | list[Text] | IO[str], _dict: Type[MutableMapping[str, Any]] = ...) -> MutableMapping[str, Any]: ...
17 def loads(s: Text, _dict: Type[MutableMapping[str, Any]] = ...) -> MutableMapping[str, Any]: ...
18 def dump(o: Mapping[str, Any], f: SupportsWrite[str]) -> str: ...
19 def dumps(o: Mapping[str, Any]) -> str: ...