mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Fixes to subprocess.CompletedProcess (#895)
This commit is contained in:
committed by
Guido van Rossum
parent
fd1201f5d5
commit
a9bb7f89d3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user