Fix type for py2 traceback.format_exc and add to python 3.

This commit is contained in:
Tim Abbott
2016-01-25 16:43:48 -08:00
committed by Guido van Rossum
parent 2011e178a6
commit 55830ec190
2 changed files with 2 additions and 1 deletions

View File

@@ -4,7 +4,7 @@ from types import TracebackType, FrameType
def print_tb(traceback: TracebackType, limit: int = ..., file: IO[str] = ...) -> None: ...
def print_exception(type: type, value: Exception, limit: int = ..., file: IO[str] = ...) -> None: ...
def print_exc(limit: int = ..., file: IO[str] = ...) -> None: ...
def format_exc(limit: int = ...) -> None: ...
def format_exc(limit: int = ...) -> str: ...
def print_last(limit: int = ..., file: IO[str] = ...) -> None: ...
def print_stack(f: FrameType, limit: int = ..., file: IO[AnyStr] = ...) -> None: ...
def extract_tb(f: TracebackType, limit: int = ...) -> List[Tuple[str, int, str, str]]: ...