Add os.waitid for macos in 3.13 (#12376)

Add waitid for macos in 3.13
This commit is contained in:
Max Muoto
2024-07-20 14:15:16 -05:00
committed by GitHub
parent 389b318691
commit 18bac0ba7e
2 changed files with 2 additions and 3 deletions

View File

@@ -18,8 +18,6 @@ os.grantpt
os.posix_openpt
os.ptsname
os.unlockpt
os.waitid
os.waitid_result
posix.grantpt
posix.posix_openpt
posix.ptsname

View File

@@ -971,7 +971,8 @@ else:
def spawnvp(mode: int, file: StrOrBytesPath, args: _ExecVArgs) -> int: ...
def spawnvpe(mode: int, file: StrOrBytesPath, args: _ExecVArgs, env: _ExecEnv) -> int: ...
def wait() -> tuple[int, int]: ... # Unix only
if sys.platform != "darwin":
# Added to MacOS in 3.13
if sys.platform != "darwin" or sys.version_info >= (3, 13):
@final
class waitid_result(structseq[int], tuple[int, int, int, int, int]):
if sys.version_info >= (3, 10):