Add stubs for posix_spawn and posix_spawnp (#5846)

This commit is contained in:
an onion
2021-08-05 21:55:26 -04:00
committed by GitHub
parent 74c3d9a093
commit f30d6f6fd0
2 changed files with 33 additions and 2 deletions

View File

@@ -819,6 +819,8 @@ else:
def WEXITSTATUS(status: int) -> int: ...
def WSTOPSIG(status: int) -> int: ...
def WTERMSIG(status: int) -> int: ...
if sys.version_info >= (3, 8):
from posix import posix_spawn as posix_spawn, posix_spawnp as posix_spawnp
if sys.platform != "win32":
from posix import sched_param