8000 yaml.dump(..., stream) is optional · python/typeshed@a78cca2 · GitHub
[go: up one dir, main page]

Skip to content

Commit a78cca2

Browse files
committed
yaml.dump(..., stream) is optional
as such move the `=...` to the None-case.
1 parent 46fb62c commit a78cca2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

third_party/2and3/yaml/__init__.pyi

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,24 @@ def serialize_all(nodes, stream=..., Dumper=..., canonical=..., indent=..., widt
2424
def serialize(node, stream=..., Dumper=..., **kwds): ...
2525

2626
@overload
27-
def dump_all(documents: Sequence[Any], stream: None, Dumper=..., default_style=..., default_flow_style=..., canonical=..., indent=..., width=..., allow_unicode=..., line_break=..., encoding=..., explicit_start=..., explicit_end=..., version=..., tags=...) -> AnyStr: ...
27+
def dump_all(documents: Sequence[Any], stream: None=..., Dumper=..., default_style=..., default_flow_style=..., canonical=..., indent=..., width=..., allow_unicode=..., line_break=..., encoding=..., explicit_start=..., explicit_end=..., version=..., tags=...) -> AnyStr: ...
2828
@overload
29-
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=...) -> None: ...
29+
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=...) -> None: ...
3030

3131
@overload
32-
def dump(data: Any, stream: None, Dumper=..., **kwds) -> AnyStr: ...
32+
def dump(data: Any, stream: None=..., Dumper=..., **kwds) -> AnyStr: ...
3333
@overload
34-
def dump(data: Any, stream: IO[str]=..., Dumper=..., **kwds) -> None: ...
34+
def dump(data: Any, stream: IO[str], Dumper=..., **kwds) -> None: ...
3535

3636
@overload
37-
def safe_dump_all(documents: Sequence[Any], stream: None, **kwds) -> AnyStr: ...
37+
def safe_dump_all(documents: Sequence[Any], stream: None=..., **kwds) -> AnyStr: ...
3838
@overload
39-
def safe_dump_all(documents: Sequence[Any], stream: IO[str]=..., **kwds) -> None: ...
39+
def safe_dump_all(documents: Sequence[Any], stream: IO[str], **kwds) -> None: ...
4040

4141
@overload
42-
def safe_dump(data: Any, stream: None, **kwds) -> AnyStr: ...
42+
def safe_dump(data: Any, stream: None=..., **kwds) -> AnyStr: ...
4343
@overload
44-
def safe_dump(data: Any, stream: IO[str]=..., **kwds) -> None: ...
44+
def safe_dump(data: Any, stream: IO[str], **kwds) -> None: ...
4545

4646
def add_implicit_resolver(tag, regexp, first=..., Loader=..., Dumper=...): ...
4747
def add_path_resolver(tag, path, kind=..., Loader=..., Dumper=...): ...

0 commit comments

Comments
 (0)
0