subprocess: Make stdin, stdout & stderr Optional for py3 to match py2 (#3652)

Closes: #3646
This commit is contained in:
Jason Gilholme
2020-01-27 01:21:58 +11:00
committed by Sebastian Rittau
parent b972427ad4
commit 76b295a669

View File

@@ -832,9 +832,9 @@ class CalledProcessError(Exception):
class Popen(Generic[AnyStr]):
args: _CMD
stdin: IO[AnyStr]
stdout: IO[AnyStr]
stderr: IO[AnyStr]
stdin: Optional[IO[AnyStr]]
stdout: Optional[IO[AnyStr]]
stderr: Optional[IO[AnyStr]]
pid: int
returncode: int