Skip to content

Commit a196df3

Browse files
committed
include subprocess32 stubs
1 parent b5096ab commit a196df3

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

typeshed/2.7/subprocess32.pyi

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Stubs for subprocess32 (Python 2)
2+
#
3+
# NOTE: This dynamically typed stub was automatically generated by stubgen.
4+
5+
from typing import Any, Optional
6+
7+
class CalledProcessError(Exception):
8+
returncode: Any = ...
9+
cmd: Any = ...
10+
output: Any = ...
11+
def __init__(self, returncode, cmd, output: Optional[Any] = ...) -> None: ...
12+
13+
class TimeoutExpired(Exception):
14+
cmd: Any = ...
15+
timeout: Any = ...
16+
output: Any = ...
17+
def __init__(self, cmd, timeout, output: Optional[Any] = ...) -> None: ...
18+
19+
class STARTUPINFO:
20+
dwFlags: int = ...
21+
hStdInput: Any = ...
22+
hStdOutput: Any = ...
23+
hStdError: Any = ...
24+
wShowWindow: int = ...
25+
26+
class pywintypes:
27+
error: Any = ...
28+
29+
PIPE: int
30+
STDOUT: int
31+
32+
def call(*popenargs, **kwargs): ...
33+
def check_call(*popenargs, **kwargs): ...
34+
def check_output(*popenargs, **kwargs): ...
35+
36+
class Popen:
37+
args: Any = ...
38+
stdin: Any = ...
39+
stdout: Any = ...
40+
stderr: Any = ...
41+
pid: Any = ...
42+
returncode: Any = ...
43+
universal_newlines: Any = ...
44+
def __init__(self, args, bufsize: int = ..., executable: Optional[Any] = ..., stdin: Optional[Any] = ..., stdout: Optional[Any] = ..., stderr: Optional[Any] = ..., preexec_fn: Optional[Any] = ..., close_fds: Any = ..., shell: bool = ..., cwd: Optional[Any] = ..., env: Optional[Any] = ..., universal_newlines: bool = ..., startupinfo: Optional[Any] = ..., creationflags: int = ..., restore_signals: bool = ..., start_new_session: bool = ..., pass_fds: Any = ...) -> None: ...
45+
def __enter__(self): ...
46+
def __exit__(self, type, value, traceback): ...
47+
def __del__(self, _maxint: Any = ..., _active: Any = ...): ...
48+
def communicate(self, input: Optional[Any] = ..., timeout: Optional[Any] = ...): ...
49+
def poll(self) -> int: ...
50+
def wait(self, timeout: Optional[Any] = ..., endtime: Optional[Any] = ...): ...
51+
def send_signal(self, sig): ...
52+
def terminate(self): ...
53+
def kill(self): ...

0 commit comments

Comments
 (0)