Files
typeshed/stdlib/3/traceback.pyi

20 lines
727 B
Python

# Stubs for traceback
from typing import IO, List
from types import TracebackType, FrameType
import typing
# TODO signatures
def format_exception_only(etype, value) -> List[str]: ...
def format_exception(type: type, value: BaseException, tb: TracebackType, limit: int = ..., chain: bool = ...) -> List[str]: ...
def format_tb(traceback): ...
def print_exc(limit=..., file=..., chain=...): ...
def format_exc(limit: int = ..., chain: bool = ...) -> str: ...
def extract_stack(f=..., limit=...): ...
def extract_tb(traceback, limit=...): ...
def format_list(list): ...
def format_stack(f=..., limit=...) -> List[str]: ...
def print_stack(f: FrameType = ..., limit: int = ..., file: IO[str] = ...) -> None: ...
# TODO add more