|
4 | 4 |
|
5 | 5 | from typing import Sequence, Any, Mapping, Callable, Tuple, IO, Optional, Union
|
6 | 6 |
|
7 |
| -# TODO force keyword arguments |
8 |
| -# TODO more keyword arguments |
9 |
| -def call(args: Union[str, Sequence[str]], *, stdin: Any = ..., stdout: Any = ..., |
10 |
| - stderr: Any = ..., shell: bool = ..., |
| 7 | +# Same args as Popen.__init__ |
| 8 | +def call(args: Union[str, Sequence[str]], |
| 9 | + bufsize: int = ..., |
| 10 | + executable: str = ..., |
| 11 | + stdin: Any = ..., |
| 12 | + stdout: Any = ..., |
| 13 | + stderr: Any = ..., |
| 14 | + preexec_fn: Callable[[], Any] = ..., |
| 15 | + close_fds: bool = ..., |
| 16 | + shell: bool = ..., |
| 17 | + cwd: str = ..., |
11 | 18 | env: Mapping[str, str] = ...,
|
12 |
| - cwd: str = ...) -> int: ... |
13 |
| -def check_call(args: Union[str, Sequence[str]], *, stdin: Any = ..., stdout: Any = ..., |
14 |
| - stderr: Any = ..., shell: bool = ..., |
| 19 | + universal_newlines: bool = ..., |
| 20 | + startupinfo: Any = ..., |
| 21 | + creationflags: int = ..., |
| 22 | + restore_signals: bool = ..., |
| 23 | + start_new_session: bool = ..., |
| 24 | + pass_fds: Any = ...) -> int: ... |
| 25 | + |
| 26 | +# Same args as Popen.__init__ |
| 27 | +def check_call(args: Union[str, Sequence[str]], |
| 28 | + bufsize: int = ..., |
| 29 | + executable: str = ..., |
| 30 | + stdin: Any = ..., |
| 31 | + stdout: Any = ..., |
| 32 | + stderr: Any = ..., |
| 33 | + preexec_fn: Callable[[], Any] = ..., |
| 34 | + close_fds: bool = ..., |
| 35 | + shell: bool = ..., |
| 36 | + cwd: str = ..., |
15 | 37 | env: Mapping[str, str] = ...,
|
16 |
| - cwd: str = ...) -> int: ... |
17 |
| -# Return str/bytes |
18 |
| -def check_output(args: Union[str, Sequence[str]], *, stdin: Any = ..., stderr: Any = ..., |
19 |
| - shell: bool = ..., universal_newlines: bool = ..., |
| 38 | + universal_newlines: bool = ..., |
| 39 | + startupinfo: Any = ..., |
| 40 | + creationflags: int = ..., |
| 41 | + restore_signals: bool = ..., |
| 42 | + start_new_session: bool = ..., |
| 43 | + pass_fds: Any = ...) -> int: ... |
| 44 | + |
| 45 | +# Same args as Popen.__init__, except for stdout |
| 46 | +def check_output(args: Union[str, Sequence[str]], |
| 47 | + bufsize: int = ..., |
| 48 | + executable: str = ..., |
| 49 | + stdin: Any = ..., |
| 50 | + stderr: Any = ..., |
| 51 | + preexec_fn: Callable[[], Any] = ..., |
| 52 | + close_fds: bool = ..., |
| 53 | + shell: bool = ..., |
| 54 | + cwd: str = ..., |
20 | 55 | env: Mapping[str, str] = ...,
|
21 |
| - cwd: str = ...) -> Any: ... |
| 56 | + universal_newlines: bool = ..., |
| 57 | + startupinfo: Any = ..., |
| 58 | + creationflags: int = ..., |
| 59 | + restore_signals: bool = ..., |
| 60 | + start_new_session: bool = ..., |
| 61 | + pass_fds: Any = ...) -> bytes: ... |
22 | 62 |
|
23 | 63 | # TODO types
|
24 | 64 | PIPE = ... # type: Any
|
|
0 commit comments