@@ -137,7 +137,7 @@ async def create_windows_process(
137137 command : str ,
138138 args : list [str ],
139139 env : dict [str , str ] | None = None ,
140- errlog : TextIO | None = sys .stderr ,
140+ errlog : TextIO | int | None = sys .stderr ,
141141 cwd : Path | str | None = None ,
142142) -> Process | FallbackProcess :
143143 """Creates a subprocess with Job Object support for tree termination.
@@ -149,6 +149,9 @@ async def create_windows_process(
149149 with it; children spawned before the assignment completes are not captured
150150 (see the inline note below).
151151
152+ errlog accepts a text stream (e.g. ``sys.stderr``), an integer file
153+ descriptor (e.g. ``subprocess.DEVNULL``), or ``None``.
154+
152155 Returns:
153156 Process | FallbackProcess: The spawned process with async stdin/stdout streams.
154157 """
@@ -177,7 +180,7 @@ async def _create_windows_fallback_process(
177180 command : str ,
178181 args : list [str ],
179182 env : dict [str , str ] | None = None ,
180- errlog : TextIO | None = sys .stderr ,
183+ errlog : TextIO | int | None = sys .stderr ,
181184 cwd : Path | str | None = None ,
182185) -> FallbackProcess :
183186 """Spawns via subprocess.Popen and wraps it in FallbackProcess."""
0 commit comments