mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Add stubs for traceback.format_exception.
This commit is contained in:
committed by
Guido van Rossum
parent
55830ec190
commit
c17d0120a9
@@ -11,6 +11,7 @@ def extract_tb(f: TracebackType, limit: int = ...) -> List[Tuple[str, int, str,
|
||||
def extract_stack(f: FrameType = ..., limit: int = ...) -> None: ...
|
||||
def format_list(list: List[Tuple[str, int, str, str]]) -> str: ...
|
||||
def format_exception_only(type: type, value: List[str]) -> str: ...
|
||||
def format_exception(type: type, value: List[str], tb: TracebackType, limit: int) -> str: ...
|
||||
def format_tb(f: TracebackType, limit: int = ...) -> str: ...
|
||||
def format_stack(f: FrameType = ..., limit: int = ...) -> str: ...
|
||||
def tb_lineno(tb: TracebackType) -> AnyStr: ...
|
||||
|
||||
@@ -4,6 +4,7 @@ import typing
|
||||
|
||||
# TODO signatures
|
||||
def format_exception_only(etype, value): ...
|
||||
def format_exception(type: type, value: List[str], tb: TracebackType, limit: int, chain: bool) -> str: ...
|
||||
def format_tb(traceback): ...
|
||||
def print_exc(limit=..., file=..., chain=...): ...
|
||||
def format_exc(limit: int, chain: bool = ...) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user