@@ -46,7 +46,7 @@ def get_windows_executable_command(command: str) -> str:
46
46
return command
47
47
48
48
49
- class DummyProcess :
49
+ class FallbackProcess :
50
50
"""
51
51
A fallback process wrapper for Windows to handle async I/O
52
52
when using subprocess.Popen, which provides sync-only FileIO objects.
@@ -115,7 +115,7 @@ async def create_windows_process(
115
115
env : dict [str , str ] | None = None ,
116
116
errlog : TextIO | None = sys .stderr ,
117
117
cwd : Path | str | None = None ,
118
- ) -> DummyProcess :
118
+ ) -> FallbackProcess :
119
119
"""
120
120
Creates a subprocess in a Windows-compatible way.
121
121
@@ -131,7 +131,7 @@ async def create_windows_process(
131
131
cwd (Path | str | None): Working directory for the subprocess
132
132
133
133
Returns:
134
- DummyProcess : Async-compatible subprocess with stdin and stdout streams
134
+ FallbackProcess : Async-compatible subprocess with stdin and stdout streams
135
135
"""
136
136
try :
137
137
# Try launching with creationflags to avoid opening a new console window
@@ -145,7 +145,7 @@ async def create_windows_process(
145
145
bufsize = 0 , # Unbuffered output
146
146
creationflags = getattr (subprocess , "CREATE_NO_WINDOW" , 0 ),
147
147
)
148
- return DummyProcess (popen_obj )
148
+ return FallbackProcess (popen_obj )
149
149
150
150
except Exception :
151
151
# If creationflags failed, fallback without them
@@ -158,10 +158,10 @@ async def create_windows_process(
158
158
cwd = cwd ,
159
159
bufsize = 0 ,
160
160
)
161
- return DummyProcess (popen_obj )
161
+ return FallbackProcess (popen_obj )
162
162
163
163
164
- async def terminate_windows_process (process : Process | DummyProcess ):
164
+ async def terminate_windows_process (process : Process | FallbackProcess ):
165
165
"""
166
166
Terminate a Windows process.
167
167
0 commit comments