From f527db7b03d32093c9f4f8552ed39fbec3ddd36f Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Mon, 25 Apr 2022 19:57:12 -0700 Subject: [PATCH] subprocess: Add _USE_VFORK and _USE_POSIX_SPAWN Debatable whether to include these, but they are now documented: python/cpython#91490 --- stdlib/subprocess.pyi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stdlib/subprocess.pyi b/stdlib/subprocess.pyi index 98bbf7d33f90..cb8ce4c0db3b 100644 --- a/stdlib/subprocess.pyi +++ b/stdlib/subprocess.pyi @@ -118,6 +118,12 @@ else: _T = TypeVar("_T") +# These two are private but documented +if sys.version_info >= (3, 11): + _USE_VFORK: bool +if sys.version_info >= (3, 8): + _USE_POSIX_SPAWN: bool + class CompletedProcess(Generic[_T]): # morally: _CMD args: Any