changed format_exception to use BaseException as value (#292)

This commit is contained in:
Philip House
2016-06-15 11:52:04 -05:00
committed by Guido van Rossum
parent b56ebf2b6a
commit dee5e7a1df
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ def extract_tb(f: TracebackType, limit: int = ...) -> ExtractTbResult: ...
def extract_stack(f: FrameType = ..., limit: int = ...) -> ExtractTbResult: ...
def format_list(list: ExtractTbResult) -> List[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_exception(type: type, value: BaseException, tb: TracebackType, limit: int = ...) -> str: ...
def format_tb(f: TracebackType, limit: int = ...) -> List[str]: ...
def format_stack(f: FrameType = ..., limit: int = ...) -> List[str]: ...
def tb_lineno(tb: TracebackType) -> AnyStr: ...