Skip to content

Commit fb852f9

Browse files
authored
[faulthandler] Add c_stack parameter to enable (#14757)
1 parent b195038 commit fb852f9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

stdlib/faulthandler.pyi

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ if sys.version_info >= (3, 14):
99
def dump_c_stack(file: FileDescriptorLike = ...) -> None: ...
1010

1111
def dump_traceback_later(timeout: float, repeat: bool = ..., file: FileDescriptorLike = ..., exit: bool = ...) -> None: ...
12-
def enable(file: FileDescriptorLike = ..., all_threads: bool = ...) -> None: ...
12+
13+
if sys.version_info >= (3, 14):
14+
def enable(file: FileDescriptorLike = ..., all_threads: bool = ..., c_stack: bool = True) -> None: ...
15+
16+
else:
17+
def enable(file: FileDescriptorLike = ..., all_threads: bool = ...) -> None: ...
18+
1319
def is_enabled() -> bool: ...
1420

1521
if sys.platform != "win32":

0 commit comments

Comments
 (0)