subprocess: make output argument to CalledProcessError optional

This commit is contained in:
Ben Darnell
2016-04-10 19:51:16 -04:00
parent 0248a5cbcf
commit f08160bd4c

View File

@@ -29,7 +29,7 @@ class CalledProcessError(Exception):
cmd = ... # type: str
output = b'' # May be None
def __init__(self, returncode: int, cmd: str, output: str) -> None: ...
def __init__(self, returncode: int, cmd: str, output: str = ...) -> None: ...
class Popen:
stdin = ... # type: IO[Any]