8000 add subprocess.STARTUPINFO and some associated constants (#2041) · python/typeshed@b1a0b8a · GitHub
[go: up one dir, main page]

Skip to content

Commit b1a0b8a

Browse files
JelleZijlstraambv
authored andcommitted
add subprocess.STARTUPINFO and some associated constants (#2041)
1 parent 0f425db commit b1a0b8a

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

stdlib/3/subprocess.pyi

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,4 +371,34 @@ def getoutput(cmd: _TXT) -> str: ...
371371

372372
def list2cmdline(seq: Sequence[str]) -> str: ... # undocumented
373373

374-
# Windows-only: STARTUPINFO etc.
374+
if sys.platform == 'win32':
375+
class STARTUPINFO:
376+
if sys.version_info >= (3, 7):
377+
def __init__(self, *, dwFlags: int = ..., hStdInput: Optional[Any] = ..., hStdOutput: Optional[Any] = ..., hStdError: Optional[Any] = ..., wShowWindow: int = ..., lpAttributeList: Optional[Mapping[str, Any]] = ...) -> None: ...
378+
dwFlags: int
379+
hStdInput: Optional[Any]
380+
hStdOutput: Optional[Any]
381+
hStdError: Optional[Any]
382+
wShowWindow: int
383+
if sys.version_info >= (3, 7):
384+
lpAttributeList: Mapping[str, Any]
385+
386+
STD_INPUT_HANDLE: Any
387+
STD_OUTPUT_HANDLE: Any
388+
STD_ERROR_HANDLE: Any
389+
SW_HIDE: int
390+
STARTF_USESTDHANDLES: int
391+
STARTF_USESHOWWINDOW: int
392+
CREATE_NEW_CONSOLE: int
393+
CREATE_NEW_PROCESS_GROUP: int
394+
if sys.version_info >= (3, 7):
395+
ABOVE_NORMAL_PRIORITY_CLASS: int
396+
BELOW_NORMAL_PRIORITY_CLASS: int
397+
HIGH_PRIORITY_CLASS: int
398+
IDLE_PRIORITY_CLASS: int
399+
NORMAL_PRIORITY_CLASS: int
400+
REALTIME_PRIORITY_CLASS: int
401+
CREATE_NO_WINDOW: int
402+
DETACHED_PROCESS: int
403+
CREATE_DEFAULT_ERROR_MODE: int
404+
CREATE_BREAKAWAY_FROM_JOB: int

0 commit comments

Comments
 (0)
0