From 0bf33ebd2bdd096f2658a940a9ab9ea107ff3017 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Tue, 27 May 2025 09:31:44 +0300 Subject: [PATCH] Update `_imp` to 3.14 (#14164) --- stdlib/@tests/stubtest_allowlists/py314.txt | 1 - stdlib/_imp.pyi | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/stdlib/@tests/stubtest_allowlists/py314.txt b/stdlib/@tests/stubtest_allowlists/py314.txt index d3b10ea71..2b563167a 100644 --- a/stdlib/@tests/stubtest_allowlists/py314.txt +++ b/stdlib/@tests/stubtest_allowlists/py314.txt @@ -3,7 +3,6 @@ # ==================================================================== _asyncio.all_tasks -_imp.pyc_magic_number_token asyncio.eager_task_factory asyncio.tasks.eager_task_factory compression.gzip.GzipFile.readinto diff --git a/stdlib/_imp.pyi b/stdlib/_imp.pyi index de3549a91..c12c26d08 100644 --- a/stdlib/_imp.pyi +++ b/stdlib/_imp.pyi @@ -5,6 +5,8 @@ from importlib.machinery import ModuleSpec from typing import Any check_hash_based_pycs: str +if sys.version_info >= (3, 14): + pyc_magic_number_token: int def source_hash(key: int, source: ReadableBuffer) -> bytes: ... def create_builtin(spec: ModuleSpec, /) -> types.ModuleType: ...