Unpin Python 3.13 and 3.14 (#15634)

This commit is contained in:
Sebastian Rittau
2026-04-08 15:18:56 +02:00
committed by GitHub
parent 86e2b8518e
commit 09525f9325
7 changed files with 71 additions and 5 deletions
+1 -2
View File
@@ -35,8 +35,7 @@ jobs:
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
# TODO: unpin the patch versions of Python 3.13/3.14 once stubtest failures are fixed
python-version: ["3.10", "3.11", "3.12", "3.13.12", "3.14.3"]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
fail-fast: false
steps:
+1 -2
View File
@@ -31,8 +31,7 @@ jobs:
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
# TODO: unpin the patch versions of Python 3.13/3.14 once stubtest failures are fixed
python-version: ["3.10", "3.11", "3.12", "3.13.12", "3.14.3"]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
fail-fast: false
steps:
@@ -1,3 +1,13 @@
# =============
# 3.13 and 3.14
# =============
# Starting with Python 3.13.13, these methods accept None for the "scheduler"
# and "setpgroup" parameters, but would raise a TypeError with Python 3.13.12
# and earlier. For compatibility reasons, we don't allow None in the stubs.
os.posix_spawn
os.posix_spawnp
# =======
# >= 3.13
# =======
@@ -1,3 +1,13 @@
# =============
# 3.13 and 3.14
# =============
# Starting with Python 3.14.4, these methods accept None for the "scheduler"
# and "setpgroup" parameters, but would raise a TypeError with Python 3.13.12
# and earlier. For compatibility reasons, we don't allow None in the stubs.
os.posix_spawn
os.posix_spawnp
# =========
# 3.14 only
# =========
@@ -0,0 +1,9 @@
# =============
# 3.13 and 3.14
# =============
# Starting with Python 3.13.13, these methods accept None for the "scheduler"
# and "setpgroup" parameters, but would raise a TypeError with Python 3.13.12
# and earlier. For compatibility reasons, we don't allow None in the stubs.
os.posix_spawn
os.posix_spawnp
@@ -1,3 +1,13 @@
# =============
# 3.13 and 3.14
# =============
# Starting with Python 3.14.4, these methods accept None for the "scheduler"
# and "setpgroup" parameters, but would raise a TypeError with Python 3.13.12
# and earlier. For compatibility reasons, we don't allow None in the stubs.
os.posix_spawn
os.posix_spawnp
# =========
# 3.14 only
# =========
+30 -1
View File
@@ -1532,7 +1532,36 @@ else:
def WSTOPSIG(status: int) -> int: ...
def WTERMSIG(status: int) -> int: ...
if sys.version_info >= (3, 13):
if sys.version_info >= (3, 15):
def posix_spawn(
path: StrOrBytesPath,
argv: _ExecVArgs,
env: _ExecEnv | None,
/,
*,
file_actions: Sequence[tuple[Any, ...]] | None = (),
setpgroup: int | None = None, # None allowed starting in 3.15
resetids: bool = False,
setsid: bool = False,
setsigmask: Iterable[int] = (),
setsigdef: Iterable[int] = (),
scheduler: tuple[Any, sched_param] | None = None, # None allowed starting in 3.15
) -> int: ...
def posix_spawnp(
path: StrOrBytesPath,
argv: _ExecVArgs,
env: _ExecEnv | None,
/,
*,
file_actions: Sequence[tuple[Any, ...]] | None = (),
setpgroup: int | None = None, # None allowed starting in 3.15
resetids: bool = False,
setsid: bool = False,
setsigmask: Iterable[int] = (),
setsigdef: Iterable[int] = (),
scheduler: tuple[Any, sched_param] | None = None, # None allowed starting in 3.15
) -> int: ...
elif sys.version_info >= (3, 13):
def posix_spawn(
path: StrOrBytesPath,
argv: _ExecVArgs,