mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
Bump os and posix to 3.14 (#14060)
This commit is contained in:
@@ -13,7 +13,6 @@ ctypes.c_float_complex._type_
|
||||
ctypes.c_longdouble_complex._type_
|
||||
multiprocessing.popen_fork.Popen.interrupt
|
||||
multiprocessing.reduction.ACKNOWLEDGE
|
||||
posix.readinto
|
||||
|
||||
|
||||
# =======
|
||||
|
||||
@@ -21,11 +21,6 @@ ctypes.c_longdouble_complex._type_
|
||||
errno.EHWPOISON
|
||||
multiprocessing.popen_fork.Popen.interrupt
|
||||
multiprocessing.reduction.ACKNOWLEDGE
|
||||
os.SCHED_DEADLINE
|
||||
os.SCHED_NORMAL
|
||||
posix.SCHED_DEADLINE
|
||||
posix.SCHED_NORMAL
|
||||
posix.readinto
|
||||
select.EPOLLWAKEUP
|
||||
socket.CAN_RAW_ERR_FILTER
|
||||
socket.IPV6_RECVERR
|
||||
|
||||
@@ -90,8 +90,6 @@ multiprocessing.managers._BaseDictProxy.__ror__
|
||||
multiprocessing.managers._BaseDictProxy.fromkeys
|
||||
multiprocessing.process.BaseProcess.interrupt
|
||||
multiprocessing.synchronize.SemLock.locked
|
||||
os.__all__
|
||||
os.readinto
|
||||
pkgutil.__all__
|
||||
pkgutil.find_loader
|
||||
pkgutil.get_loader
|
||||
|
||||
@@ -160,6 +160,8 @@ __all__ = [
|
||||
"walk",
|
||||
"write",
|
||||
]
|
||||
if sys.version_info >= (3, 14):
|
||||
__all__ += ["readinto"]
|
||||
if sys.platform == "darwin" and sys.version_info >= (3, 12):
|
||||
__all__ += ["PRIO_DARWIN_BG", "PRIO_DARWIN_NONUI", "PRIO_DARWIN_PROCESS", "PRIO_DARWIN_THREAD"]
|
||||
if sys.platform == "darwin" and sys.version_info >= (3, 10):
|
||||
@@ -208,6 +210,8 @@ if sys.platform == "linux":
|
||||
"removexattr",
|
||||
"setxattr",
|
||||
]
|
||||
if sys.platform == "linux" and sys.version_info >= (3, 14):
|
||||
__all__ += ["SCHED_DEADLINE", "SCHED_NORMAL"]
|
||||
if sys.platform == "linux" and sys.version_info >= (3, 13):
|
||||
__all__ += [
|
||||
"POSIX_SPAWN_CLOSEFROM",
|
||||
@@ -570,6 +574,10 @@ if sys.platform == "linux":
|
||||
SCHED_IDLE: int
|
||||
SCHED_RESET_ON_FORK: int
|
||||
|
||||
if sys.version_info >= (3, 14) and sys.platform == "linux":
|
||||
SCHED_DEADLINE: int
|
||||
SCHED_NORMAL: int
|
||||
|
||||
if sys.platform != "win32":
|
||||
RTLD_LAZY: int
|
||||
RTLD_NOW: int
|
||||
@@ -1149,6 +1157,9 @@ if sys.platform != "win32":
|
||||
def readv(fd: int, buffers: SupportsLenAndGetItem[WriteableBuffer], /) -> int: ...
|
||||
def writev(fd: int, buffers: SupportsLenAndGetItem[ReadableBuffer], /) -> int: ...
|
||||
|
||||
if sys.version_info >= (3, 14):
|
||||
def readinto(fd: int, buffer: ReadableBuffer, /) -> int: ...
|
||||
|
||||
@final
|
||||
class terminal_size(structseq[int], tuple[int, int]):
|
||||
if sys.version_info >= (3, 10):
|
||||
|
||||
@@ -250,6 +250,12 @@ if sys.platform != "win32":
|
||||
timerfd_settime_ns as timerfd_settime_ns,
|
||||
)
|
||||
|
||||
if sys.version_info >= (3, 14):
|
||||
from os import readinto as readinto
|
||||
|
||||
if sys.version_info >= (3, 14) and sys.platform == "linux":
|
||||
from os import SCHED_DEADLINE as SCHED_DEADLINE, SCHED_NORMAL as SCHED_NORMAL
|
||||
|
||||
if sys.platform != "linux":
|
||||
from os import O_EXLOCK as O_EXLOCK, O_SHLOCK as O_SHLOCK, chflags as chflags, lchflags as lchflags, lchmod as lchmod
|
||||
|
||||
|
||||
Reference in New Issue
Block a user