mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-23 04:11:28 +08:00
Document the availability of the os.CLONE_ constants (#12160)
This commit is contained in:
@@ -1,7 +1,3 @@
|
||||
# Exists on some Linux builds, and is documented,
|
||||
# but is unavailable in Github Actions on Linux with Python 3.12
|
||||
(os|posix).CLONE_NEWTIME
|
||||
|
||||
# Exists at runtime, but missing from stubs
|
||||
spwd.struct_spwd.sp_nam
|
||||
spwd.struct_spwd.sp_pwd
|
||||
|
||||
@@ -60,7 +60,3 @@ syslog.LOG_LAUNCHD
|
||||
syslog.LOG_NETINFO
|
||||
syslog.LOG_RAS
|
||||
syslog.LOG_REMOTEAUTH
|
||||
|
||||
# Exists on some Linux builds, and is documented,
|
||||
# but is unavailable in Github Actions on Linux with Python 3.12
|
||||
(os|posix).CLONE_NEWTIME
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# ==========
|
||||
# TODO: Review the following
|
||||
# ==========
|
||||
|
||||
_socket.*
|
||||
_posixsubprocess.cloexec_pipe
|
||||
curses.has_key
|
||||
@@ -5,11 +9,6 @@ os.plock
|
||||
selectors.KqueueSelector
|
||||
socket.[A-Z0-9_]+
|
||||
|
||||
# Platform differences that cannot be captured by the type system
|
||||
(posix.O_[A-Z_]+)?
|
||||
(posix.ST_[A-Z]+)?
|
||||
(termios.[A-Z0-9_]+)?
|
||||
|
||||
_ctypes.dlclose
|
||||
_ctypes.dlopen
|
||||
_ctypes.dlsym
|
||||
@@ -35,6 +34,10 @@ multiprocessing.popen_spawn_win32
|
||||
fcntl.I_[A-Z0-9_]+
|
||||
os.SCHED_[A-Z_]+
|
||||
posix.SCHED_[A-Z_]+
|
||||
((os|posix).CLONE_[A-Z]+)? # Python 3.12+
|
||||
(posix.O_[A-Z_]+)?
|
||||
(posix.ST_[A-Z]+)?
|
||||
(termios.[A-Z0-9_]+)?
|
||||
|
||||
# Some of these exist on non-windows, but they are useless and this is not intended
|
||||
stat.FILE_ATTRIBUTE_[A-Z_]+
|
||||
|
||||
Reference in New Issue
Block a user