@@ -205,6 +205,35 @@ if sys.platform != "win32":
205205 def remove_child_handler (self , pid : int ) -> bool : ...
206206 def attach_loop (self , loop : events .AbstractEventLoop | None ) -> None : ...
207207
208+ @deprecated ("Deprecated since Python 3.12; removed in Python 3.14." )
209+ class ThreadedChildWatcher (AbstractChildWatcher ):
210+ def is_active (self ) -> Literal [True ]: ...
211+ def close (self ) -> None : ...
212+ def __enter__ (self ) -> Self : ...
213+ def __exit__ (
214+ self , exc_type : type [BaseException ] | None , exc_val : BaseException | None , exc_tb : types .TracebackType | None
215+ ) -> None : ...
216+ def __del__ (self ) -> None : ...
217+ def add_child_handler (
218+ self , pid : int , callback : Callable [[int , int , Unpack [_Ts ]], object ], * args : Unpack [_Ts ]
219+ ) -> None : ...
220+ def remove_child_handler (self , pid : int ) -> bool : ...
221+ def attach_loop (self , loop : events .AbstractEventLoop | None ) -> None : ...
222+
223+ @deprecated ("Deprecated since Python 3.12; removed in Python 3.14." )
224+ class PidfdChildWatcher (AbstractChildWatcher ):
225+ def __enter__ (self ) -> Self : ...
226+ def __exit__ (
227+ self , exc_type : type [BaseException ] | None , exc_val : BaseException | None , exc_tb : types .TracebackType | None
228+ ) -> None : ...
229+ def is_active (self ) -> bool : ...
230+ def close (self ) -> None : ...
231+ def attach_loop (self , loop : events .AbstractEventLoop | None ) -> None : ...
232+ def add_child_handler (
233+ self , pid : int , callback : Callable [[int , int , Unpack [_Ts ]], object ], * args : Unpack [_Ts ]
234+ ) -> None : ...
235+ def remove_child_handler (self , pid : int ) -> bool : ...
236+
208237 else :
209238 class MultiLoopChildWatcher (AbstractChildWatcher ):
210239 def is_active (self ) -> bool : ...
@@ -219,30 +248,29 @@ if sys.platform != "win32":
219248 def remove_child_handler (self , pid : int ) -> bool : ...
220249 def attach_loop (self , loop : events .AbstractEventLoop | None ) -> None : ...
221250
222- if sys .version_info < (3 , 14 ):
223- class ThreadedChildWatcher (AbstractChildWatcher ):
224- def is_active (self ) -> Literal [True ]: ...
225- def close (self ) -> None : ...
226- def __enter__ (self ) -> Self : ...
227- def __exit__ (
228- self , exc_type : type [BaseException ] | None , exc_val : BaseException | None , exc_tb : types .TracebackType | None
229- ) -> None : ...
230- def __del__ (self ) -> None : ...
231- def add_child_handler (
232- self , pid : int , callback : Callable [[int , int , Unpack [_Ts ]], object ], * args : Unpack [_Ts ]
233- ) -> None : ...
234- def remove_child_handler (self , pid : int ) -> bool : ...
235- def attach_loop (self , loop : events .AbstractEventLoop | None ) -> None : ...
251+ class ThreadedChildWatcher (AbstractChildWatcher ):
252+ def is_active (self ) -> Literal [True ]: ...
253+ def close (self ) -> None : ...
254+ def __enter__ (self ) -> Self : ...
255+ def __exit__ (
256+ self , exc_type : type [BaseException ] | None , exc_val : BaseException | None , exc_tb : types .TracebackType | None
257+ ) -> None : ...
258+ def __del__ (self ) -> None : ...
259+ def add_child_handler (
260+ self , pid : int , callback : Callable [[int , int , Unpack [_Ts ]], object ], * args : Unpack [_Ts ]
261+ ) -> None : ...
262+ def remove_child_handler (self , pid : int ) -> bool : ...
263+ def attach_loop (self , loop : events .AbstractEventLoop | None ) -> None : ...
236264
237- class PidfdChildWatcher (AbstractChildWatcher ):
238- def __enter__ (self ) -> Self : ...
239- def __exit__ (
240- self , exc_type : type [BaseException ] | None , exc_val : BaseException | None , exc_tb : types .TracebackType | None
241- ) -> None : ...
242- def is_active (self ) -> bool : ...
243- def close (self ) -> None : ...
244- def attach_loop (self , loop : events .AbstractEventLoop | None ) -> None : ...
245- def add_child_handler (
246- self , pid : int , callback : Callable [[int , int , Unpack [_Ts ]], object ], * args : Unpack [_Ts ]
247- ) -> None : ...
248- def remove_child_handler (self , pid : int ) -> bool : ...
265+ class PidfdChildWatcher (AbstractChildWatcher ):
266+ def __enter__ (self ) -> Self : ...
267+ def __exit__ (
268+ self , exc_type : type [BaseException ] | None , exc_val : BaseException | None , exc_tb : types .TracebackType | None
269+ ) -> None : ...
270+ def is_active (self ) -> bool : ...
271+ def close (self ) -> None : ...
272+ def attach_loop (self , loop : events .AbstractEventLoop | None ) -> None : ...
273+ def add_child_handler (
274+ self , pid : int , callback : Callable [[int , int , Unpack [_Ts ]], object ], * args : Unpack [_Ts ]
275+ ) -> None : ...
276+ def remove_child_handler (self , pid : int ) -> bool : ...
0 commit comments