Add multiprocessing.popen_forkserver submodule (#8425)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Kevin Kirsche
2022-07-28 12:26:06 -04:00
committed by GitHub
parent a9f6632d1b
commit 1f0e641521
2 changed files with 24 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
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:
def __init__(self, ind: int) -> None: ...
def detach(self) -> int: ...
class Popen(popen_fork.Popen):
DupFd: ClassVar[type[_DupFd]]
finalizer: Finalize
sentinel: int
def __init__(self, process_obj: BaseProcess) -> None: ...
def duplicate_for_child(self, fd: int) -> int: ...
def poll(self, flag: int = ...) -> int | None: ...

View File

@@ -56,8 +56,9 @@ syslog
termios
xxlimited
# Multiprocessing.popen_fork exists on Windows but fails to import
# multiprocessing.popen_fork and popen_forkserver exist on Windows but fail to import
multiprocessing.popen_fork
multiprocessing.popen_forkserver
# Modules that rely on _curses
curses