Bump os and posix to 3.14 (#14060)

This commit is contained in:
Semyon Moroz
2025-05-14 06:34:53 +00:00
committed by GitHub
parent 9589e369f8
commit 05ec037300
5 changed files with 17 additions and 8 deletions
+11
View File
@@ -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):