Skip to content

Commit f527db7

Browse files
subprocess: Add _USE_VFORK and _USE_POSIX_SPAWN
Debatable whether to include these, but they are now documented: python/cpython#91490
1 parent 3a98e8b commit f527db7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

stdlib/subprocess.pyi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ else:
118118

119119
_T = TypeVar("_T")
120120

121+
# These two are private but documented
122+
if sys.version_info >= (3, 11):
123+
_USE_VFORK: bool
124+
if sys.version_info >= (3, 8):
125+
_USE_POSIX_SPAWN: bool
126+
121127
class CompletedProcess(Generic[_T]):
122128
# morally: _CMD
123129
args: Any

0 commit comments

Comments
 (0)