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