Skip to content

Commit 66b5ac6

Browse files
committed
update ruamel.yaml types
1 parent 9e11a86 commit 66b5ac6

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

typeshed/2.7/ruamel/yaml/main.pyi

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,19 @@
22
#
33
# NOTE: This dynamically typed stub was automatically generated by stubgen.
44

5-
from typing import Any
5+
from typing import Any, AnyStr, BinaryIO, IO, List, Tuple, Union
66
from ruamel.yaml.loader import *
77

8-
def load(stream, Loader: Any =..., version=None) -> Any: ...
8+
VersionType = Union[List[int], str, Tuple[int, int]]
9+
StreamType = Union[BinaryIO, IO[str]]
10+
11+
def load(stream: StreamType,
12+
Loader: Any =...,
13+
version: VersionType = None) -> Any: ...
14+
15+
def round_trip_load(stream: StreamType,
16+
version: VersionType = None) -> Any: ...
17+
18+
def dump(data: Any) -> Any: ...
19+
20+
def round_trip_dump(data: Any) -> Any: ...

0 commit comments

Comments
 (0)