From 4693d82c36d3acf14c0c1d293df67eac23cb7225 Mon Sep 17 00:00:00 2001 From: donBarbos Date: Sun, 21 Sep 2025 18:12:22 +0400 Subject: [PATCH] [faulthandler] Add c_stack parameter to enable Source: #128159 --- stdlib/faulthandler.pyi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/stdlib/faulthandler.pyi b/stdlib/faulthandler.pyi index 8f93222c9936..33d08995eb75 100644 --- a/stdlib/faulthandler.pyi +++ b/stdlib/faulthandler.pyi @@ -9,7 +9,13 @@ 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: ... + +if sys.version_info >= (3, 14): + def enable(file: FileDescriptorLike = ..., all_threads: bool = ..., c_stack: bool = True) -> None: ... + +else: + def enable(file: FileDescriptorLike = ..., all_threads: bool = ...) -> None: ... + def is_enabled() -> bool: ... if sys.platform != "win32":