@@ -145,17 +145,25 @@ class DefaultContext(BaseContext):
145
145
146
146
_default_context : DefaultContext
147
147
148
+ class SpawnProcess (BaseProcess ):
149
+ _start_method : str
150
+ if sys .platform != "win32" :
151
+ @staticmethod
152
+ def _Popen (process_obj : BaseProcess ) -> popen_spawn_posix .Popen : ...
153
+ else :
154
+ @staticmethod
155
+ def _Popen (process_obj : BaseProcess ) -> popen_spawn_win32 .Popen : ...
156
+
157
+ class SpawnContext (BaseContext ):
158
+ _name : str
159
+ Process : ClassVar [type [SpawnProcess ]]
160
+
148
161
if sys .platform != "win32" :
149
162
class ForkProcess (BaseProcess ):
150
163
_start_method : str
151
164
@staticmethod
152
165
def _Popen (process_obj : BaseProcess ) -> popen_fork .Popen : ...
153
166
154
- class SpawnProcess (BaseProcess ):
155
- _start_method : str
156
- @staticmethod
157
- def _Popen (process_obj : BaseProcess ) -> popen_spawn_posix .Popen : ...
158
-
159
167
class ForkServerProcess (BaseProcess ):
160
168
_start_method : str
161
169
@staticmethod
@@ -165,24 +173,10 @@ if sys.platform != "win32":
165
173
_name : str
166
174
Process : ClassVar [type [ForkProcess ]]
167
175
168
- class SpawnContext (BaseContext ):
169
- _name : str
170
- Process : ClassVar [type [SpawnProcess ]]
171
-
172
176
class ForkServerContext (BaseContext ):
173
177
_name : str
174
178
Process : ClassVar [type [ForkServerProcess ]]
175
179
176
- else :
177
- class SpawnProcess (BaseProcess ):
178
- _start_method : str
179
- @staticmethod
180
- def _Popen (process_obj : BaseProcess ) -> popen_spawn_win32 .Popen : ...
181
-
182
- class SpawnContext (BaseContext ):
183
- _name : str
184
- Process : ClassVar [type [SpawnProcess ]]
185
-
186
180
def _force_start_method (method : str ) -> None : ...
187
181
def get_spawning_popen () -> Any | None : ...
188
182
def set_spawning_popen (popen : Any ) -> None : ...
0 commit comments