From e8cd48faaf059bbad564b3a1c9bc95ac9bc013ea Mon Sep 17 00:00:00 2001 From: Semyon Moroz Date: Sun, 25 May 2025 17:21:19 +0000 Subject: [PATCH] Bump `faulthandler` to 3.14 (#14135) Co-authored-by: Jelle Zijlstra --- stdlib/@tests/stubtest_allowlists/py314.txt | 1 - stdlib/faulthandler.pyi | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/stdlib/@tests/stubtest_allowlists/py314.txt b/stdlib/@tests/stubtest_allowlists/py314.txt index 5f6b23c5d..b5a5418a6 100644 --- a/stdlib/@tests/stubtest_allowlists/py314.txt +++ b/stdlib/@tests/stubtest_allowlists/py314.txt @@ -27,7 +27,6 @@ ctypes.wintypes.HDROP ctypes.wintypes.HFILE ctypes.wintypes.HRESULT ctypes.wintypes.HSZ -faulthandler.dump_c_stack fractions.Fraction.__pow__ fractions.Fraction.__rpow__ gzip.GzipFile.readinto diff --git a/stdlib/faulthandler.pyi b/stdlib/faulthandler.pyi index 320a8b6fa..8f93222c9 100644 --- a/stdlib/faulthandler.pyi +++ b/stdlib/faulthandler.pyi @@ -4,6 +4,10 @@ from _typeshed import FileDescriptorLike def cancel_dump_traceback_later() -> None: ... def disable() -> None: ... def dump_traceback(file: FileDescriptorLike = ..., all_threads: bool = ...) -> None: ... + +if sys.version_info >= (3, 14): + def dump_c_stack(file: FileDescriptorLike = ...) -> None: ... + def dump_traceback_later(timeout: float, repeat: bool = ..., file: FileDescriptorLike = ..., exit: bool = ...) -> None: ... def enable(file: FileDescriptorLike = ..., all_threads: bool = ...) -> None: ... def is_enabled() -> bool: ...