Add stubs for traceback.format_exception.

This commit is contained in:
Tim Abbott authored and Guido van Rossum committed 2016-01-26 16:30:15 -08:00
1 parent 55830ec190
commit c17d0120a9
2 files changed
+2

No files matched your search

+1
View File
@@ -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: ...