Add multiprocessing.popen_spawn_posix submodule (#8427)

This commit is contained in:
Kevin Kirsche authored and GitHub committed 2022-07-29 15:52:49 +01:00
1 parent 553700e355
commit 17e3cf99a4
2 files changed
+26 -1

No files matched your search

@@ -0,0 +1,24 @@
import sys
from multiprocessing.process import BaseProcess
from typing import ClassVar
from . import popen_fork
from .util import Finalize
if sys.platform != "win32":
__all__ = ["Popen"]
class _DupFd:
fd: int
def __init__(self, fd: int) -> None: ...
def detach(self) -> int: ...
class Popen(popen_fork.Popen):
DupFd: ClassVar[type[_DupFd]]
finalizer: Finalize
pid: int # may not exist if _launch raises in second try / except
sentinel: int # may not exist if _launch raises in second try / except
def __init__(self, process_obj: BaseProcess) -> None: ...
def duplicate_for_child(self, fd: int) -> int: ...