FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Bump `os` and `posix` to 3.14 by donbarbos · Pull Request #14060 · python/typeshed · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .pyi  (2) .txt  (3) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ ctypes.c_float_complex._type_
ctypes.c_longdouble_complex._type_
multiprocessing.popen_fork.Popen.interrupt
multiprocessing.reduction.ACKNOWLEDGE
posix.readinto


# =======
Expand Down
5 changes: 0 additions & 5 deletions stdlib/@tests/stubtest_allowlists/linux-py314.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions stdlib/@tests/stubtest_allowlists/py314.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions stdlib/os/__init__.pyi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down
6 changes: 6 additions & 0 deletions stdlib/posix.pyi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

Back | FazBrowse Home | New Git URL