mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-04 20:45:49 +08:00
26 lines
957 B
Python
26 lines
957 B
Python
import sys
|
|
from _typeshed import FileDescriptorLike
|
|
|
|
def cancel_dump_traceback_later() -> None: ...
|
|
def disable() -> None: ...
|
|
def dump_traceback(file: FileDescriptorLike = sys.stderr, all_threads: bool = True) -> None: ...
|
|
|
|
if sys.version_info >= (3, 14):
|
|
def dump_c_stack(file: FileDescriptorLike = sys.stderr) -> None: ...
|
|
|
|
def dump_traceback_later(
|
|
timeout: float, repeat: bool = False, file: FileDescriptorLike = sys.stderr, exit: bool = False
|
|
) -> None: ...
|
|
|
|
if sys.version_info >= (3, 14):
|
|
def enable(file: FileDescriptorLike = sys.stderr, all_threads: bool = True, c_stack: bool = True) -> None: ...
|
|
|
|
else:
|
|
def enable(file: FileDescriptorLike = sys.stderr, all_threads: bool = True) -> None: ...
|
|
|
|
def is_enabled() -> bool: ...
|
|
|
|
if sys.platform != "win32":
|
|
def register(signum: int, file: FileDescriptorLike = sys.stderr, all_threads: bool = True, chain: bool = False) -> None: ...
|
|
def unregister(signum: int, /) -> None: ...
|