From 0ba818e2b5480097d3c7d3e0765a9c65788c430e Mon Sep 17 00:00:00 2001 From: Max Muoto Date: Fri, 16 May 2025 21:17:20 -0500 Subject: [PATCH] Update `sys` for 3.14 (#14086) --- stdlib/@tests/stubtest_allowlists/py314.txt | 2 -- stdlib/sys/__init__.pyi | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/stdlib/@tests/stubtest_allowlists/py314.txt b/stdlib/@tests/stubtest_allowlists/py314.txt index 922c01899..c3058c955 100644 --- a/stdlib/@tests/stubtest_allowlists/py314.txt +++ b/stdlib/@tests/stubtest_allowlists/py314.txt @@ -91,8 +91,6 @@ sre_compile.CH_NEGATE sre_constants.CH_NEGATE sre_parse.CH_NEGATE string.Template.flags -sys.is_remote_debug_enabled -sys.remote_exec tarfile.TarFile.zstopen tkinter.Event.__class_getitem__ turtle.__all__ diff --git a/stdlib/sys/__init__.pyi b/stdlib/sys/__init__.pyi index 2d894674c..ce06551f9 100644 --- a/stdlib/sys/__init__.pyi +++ b/stdlib/sys/__init__.pyi @@ -1,5 +1,5 @@ import sys -from _typeshed import MaybeNone, OptExcInfo, ProfileFunction, TraceFunction, structseq +from _typeshed import MaybeNone, OptExcInfo, ProfileFunction, StrOrBytesPath, TraceFunction, structseq from _typeshed.importlib import MetaPathFinderProtocol, PathEntryFinderProtocol from builtins import object as _object from collections.abc import AsyncGenerator, Callable, Sequence @@ -470,3 +470,7 @@ if sys.version_info >= (3, 12): from . import _monitoring monitoring = _monitoring + +if sys.version_info >= (3, 14): + def is_remote_debug_enabled() -> bool: ... + def remote_exec(pid: int, script: StrOrBytesPath) -> None: ...