Skip to content

Commit a7754c3

Browse files
subprocess: Fix return type of check_output.
check_output's return type can be str if universal_newlines=True.
1 parent 2ce0e95 commit a7754c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/3/subprocess.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def check_output(args: Union[str, Sequence[str]],
5858
creationflags: int = ...,
5959
restore_signals: bool = ...,
6060
start_new_session: bool = ...,
61-
pass_fds: Any = ...) -> bytes: ...
61+
pass_fds: Any = ...) -> Any: ...
6262

6363
# TODO types
6464
PIPE = ... # type: Any

0 commit comments

Comments
 (0)