From a9bb7f89d3f9021d586fe325b22b380d554aaa1c Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Sun, 29 Jan 2017 20:16:49 -0800 Subject: [PATCH] Fixes to subprocess.CompletedProcess (#895) --- stdlib/3/subprocess.pyi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stdlib/3/subprocess.pyi b/stdlib/3/subprocess.pyi index c22ba0075..ebc70848b 100644 --- a/stdlib/3/subprocess.pyi +++ b/stdlib/3/subprocess.pyi @@ -8,14 +8,14 @@ from types import TracebackType if sys.version_info >= (3, 5): class CompletedProcess: - args = ... # type: Union[List, str] + args = ... # type: Union[Sequence[str], str] returncode = ... # type: int stdout = ... # type: Any stderr = ... # type: Any def __init__(self, args: Union[List, str], returncode: int, - stdout: Union[str, bytes], - stderr: Union[str, bytes]) -> None: ... + stdout: Union[str, bytes, None] = ..., + stderr: Union[str, bytes, None] = ...) -> None: ... def check_returncode(self) -> None: ... # Nearly same args as Popen.__init__ except for timeout, input, and check