mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Add os.waitid and os.waitid_result for osx (#12391)
This commit is contained in:
@@ -6,8 +6,6 @@ fcntl.F_OFD_SETLKW
|
||||
fcntl.F_RDAHEAD
|
||||
fcntl.F_SETNOSIGPIPE
|
||||
posixpath.splitroot
|
||||
posix.waitid
|
||||
posix.waitid_result
|
||||
webbrowser.MacOSX
|
||||
|
||||
# TODO: fix
|
||||
|
||||
@@ -286,13 +286,14 @@ if sys.platform != "win32":
|
||||
sched_setscheduler as sched_setscheduler,
|
||||
setresgid as setresgid,
|
||||
setresuid as setresuid,
|
||||
waitid as waitid,
|
||||
waitid_result as waitid_result,
|
||||
)
|
||||
|
||||
if sys.version_info >= (3, 10):
|
||||
from os import RWF_APPEND as RWF_APPEND
|
||||
|
||||
if sys.platform != "darwin" or sys.version_info >= (3, 13):
|
||||
from os import waitid as waitid, waitid_result as waitid_result
|
||||
|
||||
if sys.platform == "linux":
|
||||
from os import (
|
||||
GRND_NONBLOCK as GRND_NONBLOCK,
|
||||
|
||||
Reference in New Issue
Block a user