mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-07 05:54:02 +08:00
Bump os and posix to 3.14 (#14060)
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user