1
- from typing import Any , Iterator , Sequence , Union , IO
1
+ from typing import Any , AnyStr , Iterator , overload , Sequence , Union , IO
2
2
from yaml .error import * # noqa: F403
3
3
from yaml .tokens import * # noqa: F403
4
4
from yaml .events import * # noqa: F403
@@ -22,10 +22,27 @@ def safe_load_all(stream: Union[str, IO[str]]) -> Iterator[Any]: ...
22
22
def emit (events , stream = ..., Dumper = ..., canonical = ..., indent = ..., width = ..., allow_unicode = ..., line_break = ...): ...
23
23
def serialize_all (nodes , stream = ..., Dumper = ..., canonical = ..., indent = ..., width = ..., allow_unicode = ..., line_break = ..., encoding = ..., explicit_start = ..., explicit_end = ..., version = ..., tags = ...): ...
24
24
def serialize (node , stream = ..., Dumper = ..., ** kwds ): ...
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 : ...
26
- def dump (data : Any , stream : IO [str ]= ..., Dumper = ..., ** kwds ) -> Any : ...
27
- def safe_dump_all (documents : Sequence [Any ], stream : IO [str ]= ..., ** kwds ) -> Any : ...
28
- def safe_dump (data : Any , stream : IO [str ]= ..., ** kwds ) -> Any : ...
25
+
26
+ @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 : ...
28
+ @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 : ...
30
+
31
+ @overload
32
+ def dump (data : Any , stream : None , Dumper = ..., ** kwds ) -> AnyStr : ...
33
+ @overload
34
+ def dump (data : Any , stream : IO [str ]= ..., Dumper = ..., ** kwds ) -> None : ...
35
+
36
+ @overload
37
+ def safe_dump_all (documents : Sequence [Any ], stream : None , ** kwds ) -> AnyStr : ...
38
+ @overload
39
+ def safe_dump_all (documents : Sequence [Any ], stream : IO [str ]= ..., ** kwds ) -> None : ...
40
+
41
+ @overload
42
+ def safe_dump (data : Any , stream : None , ** kwds ) -> AnyStr : ...
43
+ @overload
44
+ def safe_dump (data : Any , stream : IO [str ]= ..., ** kwds ) -> None : ...
45
+
29
46
def add_implicit_resolver (tag , regexp , first = ..., Loader = ..., Dumper = ...): ...
30
47
def add_path_resolver (tag , path , kind = ..., Loader = ..., Dumper = ...): ...
31
48
def add_constructor (tag , constructor , Loader = ...): ...
0 commit comments