massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / third_party / 2and3 / yaml / __init__.pyi
1 from typing import Any, Iterator, Sequence, Union, IO\r
2 from yaml.error import *  # noqa: F403\r
3 from yaml.tokens import *  # noqa: F403\r
4 from yaml.events import *  # noqa: F403\r
5 from yaml.nodes import *  # noqa: F403\r
6 from yaml.loader import *  # noqa: F403\r
7 from yaml.dumper import *  # noqa: F403\r
8 from . import resolver  # Help mypy a bit; this is implied by loader and dumper\r
9 # TODO: stubs for cyaml?\r
10 # from cyaml import *\r
11 \r
12 __with_libyaml__ = ...  # type: Any\r
13 \r
14 def scan(stream, Loader=...): ...\r
15 def parse(stream, Loader=...): ...\r
16 def compose(stream, Loader=...): ...\r
17 def compose_all(stream, Loader=...): ...\r
18 def load(stream: Union[str, IO[str]], Loader=...) -> Any: ...\r
19 def load_all(stream: Union[str, IO[str]], Loader=...) -> Iterator[Any]: ...\r
20 def safe_load(stream: Union[str, IO[str]]) -> Any: ...\r
21 def safe_load_all(stream: Union[str, IO[str]]) -> Iterator[Any]: ...\r
22 def emit(events, stream=..., Dumper=..., canonical=..., indent=..., width=..., allow_unicode=..., line_break=...): ...\r
23 def serialize_all(nodes, stream=..., Dumper=..., canonical=..., indent=..., width=..., allow_unicode=..., line_break=..., encoding=..., explicit_start=..., explicit_end=..., version=..., tags=...): ...\r
24 def serialize(node, stream=..., Dumper=..., **kwds): ...\r
25 def dump_all(documents: Sequence[Any], stream: IO[str]=..., Dumper=..., default_style=..., default_flow_style=..., canonical=..., indent=..., width=..., allow_unicode=..., line_break=..., encoding=..., explicit_start=..., explicit_end=..., version=..., tags=...) -> Any: ...\r
26 def dump(data: Any, stream: IO[str]=..., Dumper=..., **kwds) -> Any: ...\r
27 def safe_dump_all(documents: Sequence[Any], stream: IO[str]=..., **kwds) -> Any: ...\r
28 def safe_dump(data: Any, stream: IO[str]=..., **kwds) -> Any: ...\r
29 def add_implicit_resolver(tag, regexp, first=..., Loader=..., Dumper=...): ...\r
30 def add_path_resolver(tag, path, kind=..., Loader=..., Dumper=...): ...\r
31 def add_constructor(tag, constructor, Loader=...): ...\r
32 def add_multi_constructor(tag_prefix, multi_constructor, Loader=...): ...\r
33 def add_representer(data_type, representer, Dumper=...): ...\r
34 def add_multi_representer(data_type, multi_representer, Dumper=...): ...\r
35 \r
36 class YAMLObjectMetaclass(type):\r
37     def __init__(cls, name, bases, kwds) -> None: ...\r
38 \r
39 class YAMLObject:\r
40     __metaclass__ = YAMLObjectMetaclass\r
41     yaml_loader = ...  # type: Any\r
42     yaml_dumper = ...  # type: Any\r
43     yaml_tag = ...  # type: Any\r
44     yaml_flow_style = ...  # type: Any\r
45     @classmethod\r
46     def from_yaml(cls, loader, node): ...\r
47     @classmethod\r
48     def to_yaml(cls, dumper, data): ...\r