Files
typeshed/stdlib/@python2/popen2.pyi
2021-08-14 11:12:30 +02:00

28 lines
967 B
Python

from typing import Any, Iterable, TextIO, Tuple, TypeVar
_T = TypeVar("_T")
class Popen3:
sts: int
cmd: Iterable[Any]
pid: int
tochild: TextIO
fromchild: TextIO
childerr: TextIO | None
def __init__(self, cmd: Iterable[Any] = ..., capturestderr: bool = ..., bufsize: int = ...) -> None: ...
def __del__(self) -> None: ...
def poll(self, _deadstate: _T = ...) -> int | _T: ...
def wait(self) -> int: ...
class Popen4(Popen3):
childerr: None
cmd: Iterable[Any]
pid: int
tochild: TextIO
fromchild: TextIO
def __init__(self, cmd: Iterable[Any] = ..., bufsize: int = ...) -> None: ...
def popen2(cmd: Iterable[Any] = ..., bufsize: int = ..., mode: str = ...) -> Tuple[TextIO, TextIO]: ...
def popen3(cmd: Iterable[Any] = ..., bufsize: int = ..., mode: str = ...) -> Tuple[TextIO, TextIO, TextIO]: ...
def popen4(cmd: Iterable[Any] = ..., bufsize: int = ..., mode: str = ...) -> Tuple[TextIO, TextIO]: ...