Skip to content

Commit f5e4f7f

Browse files
committed
yaml.serialize_all(..., stream) overload
same as for dump_all()
1 parent a78cca2 commit f5e4f7f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

third_party/2and3/yaml/__init__.pyi

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ def load_all(stream: Union[str, IO[str]], Loader=...) -> Iterator[Any]: ...
2020
def safe_load(stream: Union[str, IO[str]]) -> Any: ...
2121
def safe_load_all(stream: Union[str, IO[str]]) -> Iterator[Any]: ...
2222
def emit(events, stream=..., Dumper=..., canonical=..., indent=..., width=..., allow_unicode=..., line_break=...): ...
23-
def serialize_all(nodes, stream=..., Dumper=..., canonical=..., indent=..., width=..., allow_unicode=..., line_break=..., encoding=..., explicit_start=..., explicit_end=..., version=..., tags=...): ...
23+
24+
@overload
25+
def serialize_all(nodes, stream: None=..., Dumper=..., canonical=..., indent=..., width=..., allow_unicode=..., line_break=..., encoding=..., explicit_start=..., explicit_end=..., version=..., tags=...) -> AnyStr: ...
26+
@overload
27+
def serialize_all(nodes, stream: IO[str], Dumper=..., canonical=..., indent=..., width=..., allow_unicode=..., line_break=..., encoding=..., explicit_start=..., explicit_end=..., version=..., tags=...) -> None: ...
28+
2429
def serialize(node, stream=..., Dumper=..., **kwds): ...
2530

2631
@overload

0 commit comments

Comments
 (0)