subprocess: Fix return type of check_output.

check_output's return type can be str if universal_newlines=True.
This commit is contained in:
Eklavya Sharma
2016-07-07 22:00:30 +05:30
parent 2ce0e952eb
commit a7754c3eff

View File

@@ -58,7 +58,7 @@ def check_output(args: Union[str, Sequence[str]],
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...) -> bytes: ...
pass_fds: Any = ...) -> Any: ...
# TODO types
PIPE = ... # type: Any