Add hints to PyYAML dump methods (#2023)

This commit is contained in:
Andrew Gaul
2018-04-09 12:59:10 -07:00
committed by Jelle Zijlstra
parent fe1d7f4fd4
commit aa7d705ae8

View File

@@ -1,4 +1,4 @@
from typing import Any, Iterator, Union, IO
from typing import Any, Iterator, Sequence, Union, IO
from yaml.error import * # noqa: F403
from yaml.tokens import * # noqa: F403
from yaml.events import * # noqa: F403
@@ -22,10 +22,10 @@ def safe_load_all(stream: Union[str, IO[str]]) -> Iterator[Any]: ...
def emit(events, stream=..., Dumper=..., canonical=..., indent=..., width=..., allow_unicode=..., line_break=...): ...
def serialize_all(nodes, stream=..., Dumper=..., canonical=..., indent=..., width=..., allow_unicode=..., line_break=..., encoding=..., explicit_start=..., explicit_end=..., version=..., tags=...): ...
def serialize(node, stream=..., Dumper=..., **kwds): ...
def dump_all(documents, stream=..., Dumper=..., default_style=..., default_flow_style=..., canonical=..., indent=..., width=..., allow_unicode=..., line_break=..., encoding=..., explicit_start=..., explicit_end=..., version=..., tags=...): ...
def dump(data, stream=..., Dumper=..., **kwds): ...
def safe_dump_all(documents, stream=..., **kwds): ...
def safe_dump(data, stream=..., **kwds): ...
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: ...
def dump(data: Any, stream: IO[str]=..., Dumper=..., **kwds) -> Any: ...
def safe_dump_all(documents: Sequence[Any], stream: IO[str]=..., **kwds) -> Any: ...
def safe_dump(data: Any, stream: IO[str]=..., **kwds) -> Any: ...
def add_implicit_resolver(tag, regexp, first=..., Loader=..., Dumper=...): ...
def add_path_resolver(tag, path, kind=..., Loader=..., Dumper=...): ...
def add_constructor(tag, constructor, Loader=...): ...