Update asyncio subprocess optional **kwargs (#9177)

This commit is contained in:
Коренберг Марк
2022-12-18 22:51:31 +05:00
committed by GitHub
parent 0e41136f5a
commit bff43b53e5
2 changed files with 172 additions and 88 deletions

View File

@@ -1,6 +1,6 @@
import sys
from _typeshed import Self, StrOrBytesPath
from collections.abc import Callable, Iterable, Mapping, Sequence
from collections.abc import Callable, Collection, Iterable, Mapping, Sequence
from types import TracebackType
from typing import IO, Any, AnyStr, Generic, TypeVar, overload
from typing_extensions import Literal, TypeAlias
@@ -123,7 +123,7 @@ if sys.version_info >= (3, 11):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
capture_output: bool = ...,
check: bool = ...,
@@ -157,7 +157,7 @@ if sys.version_info >= (3, 11):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
capture_output: bool = ...,
check: bool = ...,
@@ -191,7 +191,7 @@ if sys.version_info >= (3, 11):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
capture_output: bool = ...,
check: bool = ...,
@@ -226,7 +226,7 @@ if sys.version_info >= (3, 11):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
# where the *real* keyword only args start
capture_output: bool = ...,
check: bool = ...,
@@ -260,7 +260,7 @@ if sys.version_info >= (3, 11):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
capture_output: bool = ...,
check: bool = ...,
@@ -294,7 +294,7 @@ if sys.version_info >= (3, 11):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
capture_output: bool = ...,
check: bool = ...,
@@ -331,7 +331,7 @@ elif sys.version_info >= (3, 10):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
capture_output: bool = ...,
check: bool = ...,
@@ -364,7 +364,7 @@ elif sys.version_info >= (3, 10):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
capture_output: bool = ...,
check: bool = ...,
@@ -397,7 +397,7 @@ elif sys.version_info >= (3, 10):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
capture_output: bool = ...,
check: bool = ...,
@@ -431,7 +431,7 @@ elif sys.version_info >= (3, 10):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
# where the *real* keyword only args start
capture_output: bool = ...,
check: bool = ...,
@@ -464,7 +464,7 @@ elif sys.version_info >= (3, 10):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
capture_output: bool = ...,
check: bool = ...,
@@ -497,7 +497,7 @@ elif sys.version_info >= (3, 10):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
capture_output: bool = ...,
check: bool = ...,
@@ -533,7 +533,7 @@ elif sys.version_info >= (3, 9):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
capture_output: bool = ...,
check: bool = ...,
@@ -565,7 +565,7 @@ elif sys.version_info >= (3, 9):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
capture_output: bool = ...,
check: bool = ...,
@@ -597,7 +597,7 @@ elif sys.version_info >= (3, 9):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
capture_output: bool = ...,
check: bool = ...,
@@ -630,7 +630,7 @@ elif sys.version_info >= (3, 9):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
# where the *real* keyword only args start
capture_output: bool = ...,
check: bool = ...,
@@ -662,7 +662,7 @@ elif sys.version_info >= (3, 9):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
capture_output: bool = ...,
check: bool = ...,
@@ -694,7 +694,7 @@ elif sys.version_info >= (3, 9):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
capture_output: bool = ...,
check: bool = ...,
@@ -728,7 +728,7 @@ else:
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
capture_output: bool = ...,
check: bool = ...,
@@ -756,7 +756,7 @@ else:
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
capture_output: bool = ...,
check: bool = ...,
@@ -784,7 +784,7 @@ else:
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
capture_output: bool = ...,
check: bool = ...,
@@ -813,7 +813,7 @@ else:
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
# where the *real* keyword only args start
capture_output: bool = ...,
check: bool = ...,
@@ -841,7 +841,7 @@ else:
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
capture_output: bool = ...,
check: bool = ...,
@@ -869,7 +869,7 @@ else:
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
capture_output: bool = ...,
check: bool = ...,
@@ -900,7 +900,7 @@ if sys.version_info >= (3, 11):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
timeout: float | None = ...,
text: bool | None = ...,
@@ -931,7 +931,7 @@ elif sys.version_info >= (3, 10):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
timeout: float | None = ...,
text: bool | None = ...,
@@ -961,7 +961,7 @@ elif sys.version_info >= (3, 9):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
timeout: float | None = ...,
text: bool | None = ...,
@@ -989,7 +989,7 @@ else:
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
timeout: float | None = ...,
text: bool | None = ...,
@@ -1015,7 +1015,7 @@ if sys.version_info >= (3, 11):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
timeout: float | None = ...,
*,
text: bool | None = ...,
@@ -1046,7 +1046,7 @@ elif sys.version_info >= (3, 10):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
timeout: float | None = ...,
*,
text: bool | None = ...,
@@ -1076,7 +1076,7 @@ elif sys.version_info >= (3, 9):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
timeout: float | None = ...,
*,
text: bool | None = ...,
@@ -1104,7 +1104,7 @@ else:
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
timeout: float | None = ...,
*,
text: bool | None = ...,
@@ -1129,7 +1129,7 @@ if sys.version_info >= (3, 11):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
timeout: float | None = ...,
input: _TXT | None = ...,
@@ -1160,7 +1160,7 @@ if sys.version_info >= (3, 11):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
timeout: float | None = ...,
input: _TXT | None = ...,
@@ -1191,7 +1191,7 @@ if sys.version_info >= (3, 11):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
timeout: float | None = ...,
input: _TXT | None = ...,
@@ -1223,7 +1223,7 @@ if sys.version_info >= (3, 11):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
# where the real keyword only ones start
timeout: float | None = ...,
input: _TXT | None = ...,
@@ -1254,7 +1254,7 @@ if sys.version_info >= (3, 11):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
timeout: float | None = ...,
input: _TXT | None = ...,
@@ -1285,7 +1285,7 @@ if sys.version_info >= (3, 11):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
timeout: float | None = ...,
input: _TXT | None = ...,
@@ -1319,7 +1319,7 @@ elif sys.version_info >= (3, 10):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
timeout: float | None = ...,
input: _TXT | None = ...,
@@ -1349,7 +1349,7 @@ elif sys.version_info >= (3, 10):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
timeout: float | None = ...,
input: _TXT | None = ...,
@@ -1379,7 +1379,7 @@ elif sys.version_info >= (3, 10):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
timeout: float | None = ...,
input: _TXT | None = ...,
@@ -1410,7 +1410,7 @@ elif sys.version_info >= (3, 10):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
# where the real keyword only ones start
timeout: float | None = ...,
input: _TXT | None = ...,
@@ -1440,7 +1440,7 @@ elif sys.version_info >= (3, 10):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
timeout: float | None = ...,
input: _TXT | None = ...,
@@ -1470,7 +1470,7 @@ elif sys.version_info >= (3, 10):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
timeout: float | None = ...,
input: _TXT | None = ...,
@@ -1503,7 +1503,7 @@ elif sys.version_info >= (3, 9):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
timeout: float | None = ...,
input: _TXT | None = ...,
@@ -1532,7 +1532,7 @@ elif sys.version_info >= (3, 9):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
timeout: float | None = ...,
input: _TXT | None = ...,
@@ -1561,7 +1561,7 @@ elif sys.version_info >= (3, 9):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
timeout: float | None = ...,
input: _TXT | None = ...,
@@ -1591,7 +1591,7 @@ elif sys.version_info >= (3, 9):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
# where the real keyword only ones start
timeout: float | None = ...,
input: _TXT | None = ...,
@@ -1620,7 +1620,7 @@ elif sys.version_info >= (3, 9):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
timeout: float | None = ...,
input: _TXT | None = ...,
@@ -1649,7 +1649,7 @@ elif sys.version_info >= (3, 9):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
timeout: float | None = ...,
input: _TXT | None = ...,
@@ -1680,7 +1680,7 @@ else:
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
timeout: float | None = ...,
input: _TXT | None = ...,
@@ -1705,7 +1705,7 @@ else:
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
timeout: float | None = ...,
input: _TXT | None = ...,
@@ -1730,7 +1730,7 @@ else:
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
timeout: float | None = ...,
input: _TXT | None = ...,
@@ -1756,7 +1756,7 @@ else:
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
# where the real keyword only ones start
timeout: float | None = ...,
input: _TXT | None = ...,
@@ -1781,7 +1781,7 @@ else:
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
timeout: float | None = ...,
input: _TXT | None = ...,
@@ -1806,7 +1806,7 @@ else:
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
timeout: float | None = ...,
input: _TXT | None = ...,
@@ -1873,7 +1873,7 @@ class Popen(Generic[AnyStr]):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
text: bool | None = ...,
encoding: str,
@@ -1904,7 +1904,7 @@ class Popen(Generic[AnyStr]):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
text: bool | None = ...,
encoding: str | None = ...,
@@ -1936,7 +1936,7 @@ class Popen(Generic[AnyStr]):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
# where the *real* keyword only args start
text: bool | None = ...,
encoding: str | None = ...,
@@ -1967,7 +1967,7 @@ class Popen(Generic[AnyStr]):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
text: Literal[True],
encoding: str | None = ...,
@@ -1998,7 +1998,7 @@ class Popen(Generic[AnyStr]):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
text: Literal[None, False] = ...,
encoding: None = ...,
@@ -2029,7 +2029,7 @@ class Popen(Generic[AnyStr]):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
text: bool | None = ...,
encoding: str | None = ...,
@@ -2062,7 +2062,7 @@ class Popen(Generic[AnyStr]):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
text: bool | None = ...,
encoding: str,
@@ -2092,7 +2092,7 @@ class Popen(Generic[AnyStr]):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
text: bool | None = ...,
encoding: str | None = ...,
@@ -2123,7 +2123,7 @@ class Popen(Generic[AnyStr]):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
# where the *real* keyword only args start
text: bool | None = ...,
encoding: str | None = ...,
@@ -2153,7 +2153,7 @@ class Popen(Generic[AnyStr]):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
text: Literal[True],
encoding: str | None = ...,
@@ -2183,7 +2183,7 @@ class Popen(Generic[AnyStr]):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
text: Literal[None, False] = ...,
encoding: None = ...,
@@ -2213,7 +2213,7 @@ class Popen(Generic[AnyStr]):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
text: bool | None = ...,
encoding: str | None = ...,
@@ -2245,7 +2245,7 @@ class Popen(Generic[AnyStr]):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
text: bool | None = ...,
encoding: str,
@@ -2274,7 +2274,7 @@ class Popen(Generic[AnyStr]):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
text: bool | None = ...,
encoding: str | None = ...,
@@ -2304,7 +2304,7 @@ class Popen(Generic[AnyStr]):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
# where the *real* keyword only args start
text: bool | None = ...,
encoding: str | None = ...,
@@ -2333,7 +2333,7 @@ class Popen(Generic[AnyStr]):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
text: Literal[True],
encoding: str | None = ...,
@@ -2362,7 +2362,7 @@ class Popen(Generic[AnyStr]):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
text: Literal[None, False] = ...,
encoding: None = ...,
@@ -2391,7 +2391,7 @@ class Popen(Generic[AnyStr]):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
text: bool | None = ...,
encoding: str | None = ...,
@@ -2421,7 +2421,7 @@ class Popen(Generic[AnyStr]):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
text: bool | None = ...,
encoding: str,
@@ -2446,7 +2446,7 @@ class Popen(Generic[AnyStr]):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
text: bool | None = ...,
encoding: str | None = ...,
@@ -2472,7 +2472,7 @@ class Popen(Generic[AnyStr]):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
# where the *real* keyword only args start
text: bool | None = ...,
encoding: str | None = ...,
@@ -2497,7 +2497,7 @@ class Popen(Generic[AnyStr]):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
text: Literal[True],
encoding: str | None = ...,
@@ -2522,7 +2522,7 @@ class Popen(Generic[AnyStr]):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
text: Literal[None, False] = ...,
encoding: None = ...,
@@ -2547,7 +2547,7 @@ class Popen(Generic[AnyStr]):
creationflags: int = ...,
restore_signals: bool = ...,
start_new_session: bool = ...,
pass_fds: Any = ...,
pass_fds: Collection[int] = ...,
*,
text: bool | None = ...,
encoding: str | None = ...,