__init__.pyi: Fix dump() (#2640)

Fixes #2089
This commit is contained in:
Utkarsh Gupta
2018-11-28 13:38:30 +05:30
committed by Sebastian Rittau
parent 25c5f3cace
commit 03981de076

View File

@@ -1,4 +1,4 @@
from typing import Any, Iterator, Sequence, Union, IO
from typing import Optional, Any, Iterator, Sequence, Union, IO
from yaml.error import * # noqa: F403
from yaml.tokens import * # noqa: F403
from yaml.events import * # noqa: F403
@@ -23,7 +23,7 @@ def emit(events, stream=..., Dumper=..., canonical=..., indent=..., width=..., a
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: 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 dump(data: Any, stream: Optional[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=...): ...