From 15714bb0e8f5631f29ee67bce99cdaa96ef55e16 Mon Sep 17 00:00:00 2001 From: Eklavya Sharma Date: Sat, 2 Jul 2016 20:10:09 +0530 Subject: [PATCH] Set a default value for output in CalledProcessError.__init__ (#329) --- stdlib/3/subprocess.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/3/subprocess.pyi b/stdlib/3/subprocess.pyi index 83d62cf9e..9b7921a31 100644 --- a/stdlib/3/subprocess.pyi +++ b/stdlib/3/subprocess.pyi @@ -29,7 +29,7 @@ class CalledProcessError(Exception): cmd = ... # type: str output = b'' # May be None - def __init__(self, returncode: int, cmd: str, output: Optional[str], + def __init__(self, returncode: int, cmd: str, output: Optional[str] = ..., stderr: Optional[str] = ...) -> None: ... class Popen: