mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Allow passing bytes and byte string to yaml load APIs. (#3287)
This commit is contained in:
committed by
Jelle Zijlstra
parent
785d7838e1
commit
23b353303b
12
third_party/2and3/yaml/__init__.pyi
vendored
12
third_party/2and3/yaml/__init__.pyi
vendored
@@ -23,12 +23,12 @@ def scan(stream, Loader=...): ...
|
||||
def parse(stream, Loader=...): ...
|
||||
def compose(stream, Loader=...): ...
|
||||
def compose_all(stream, Loader=...): ...
|
||||
def load(stream: Union[str, IO[str]], Loader=...) -> Any: ...
|
||||
def load_all(stream: Union[str, IO[str]], Loader=...) -> Iterator[Any]: ...
|
||||
def full_load(stream: Union[str, IO[str]]) -> Any: ...
|
||||
def full_load_all(stream: Union[str, IO[str]]) -> Iterator[Any]: ...
|
||||
def safe_load(stream: Union[str, IO[str]]) -> Any: ...
|
||||
def safe_load_all(stream: Union[str, IO[str]]) -> Iterator[Any]: ...
|
||||
def load(stream: Union[bytes, IO[bytes], str, IO[str]], Loader=...) -> Any: ...
|
||||
def load_all(stream: Union[bytes, IO[bytes], str, IO[str]], Loader=...) -> Iterator[Any]: ...
|
||||
def full_load(stream: Union[bytes, IO[bytes], str, IO[str]]) -> Any: ...
|
||||
def full_load_all(stream: Union[bytes, IO[bytes], str, IO[str]]) -> Iterator[Any]: ...
|
||||
def safe_load(stream: Union[bytes, IO[bytes], str, IO[str]]) -> Any: ...
|
||||
def safe_load_all(stream: Union[bytes, IO[bytes], str, IO[str]]) -> Iterator[Any]: ...
|
||||
def emit(events, stream=..., Dumper=..., canonical=..., indent=..., width=..., allow_unicode=..., line_break=...): ...
|
||||
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user