mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-04 04:25:50 +08:00
Unpin Python 3.13 and 3.14 (#15634)
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user