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: ...