Skip to content

Commit 4dd4046

Browse files
pkordasmatthiaskramm
authored andcommitted
added stub file for popen2 (#1385)
1 parent 802f3b2 commit 4dd4046

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

stdlib/2/popen2.pyi

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
from typing import Any, Iterable, List, Optional, Union, TextIO, Tuple, TypeVar
2+
3+
_T = TypeVar('_T')
4+
5+
__all__ = ... # type: List[str]
6+
7+
class Popen3:
8+
sts = ... # type: int
9+
cmd = ... # type: Iterable
10+
pid = ... # type: int
11+
tochild = ... # type: TextIO
12+
fromchild = ... # type: TextIO
13+
childerr = ... # type: Optional[TextIO]
14+
def __init__(self, cmd: Iterable = ..., capturestderr: bool = ..., bufsize: int = ...) -> None: ...
15+
def __del__(self) -> None: ...
16+
def poll(self, _deadstate: _T = ...) -> Union[int, _T]: ...
17+
def wait(self) -> int: ...
18+
19+
class Popen4(Popen3):
20+
childerr = ... # type: None
21+
cmd = ... # type: Iterable
22+
pid = ... # type: int
23+
tochild = ... # type: TextIO
24+
fromchild = ... # type: TextIO
25+
def __init__(self, cmd: Iterable = ..., bufsize: int = ...) -> None: ...
26+
27+
def popen2(cmd: Iterable = ..., bufsize: int = ..., mode: str = ...) -> Tuple[TextIO, TextIO]: ...
28+
def popen3(cmd: Iterable = ..., bufsize: int = ..., mode: str = ...) -> Tuple[TextIO, TextIO, TextIO]: ...
29+
def popen4(cmd: Iterable = ..., bufsize: int = ..., mode: str = ...) -> Tuple[TextIO, TextIO]: ...

0 commit comments

Comments
 (0)