From dee5e7a1dfae0346c5ebe8e2808f03395d0eb45c Mon Sep 17 00:00:00 2001 From: Philip House Date: Wed, 15 Jun 2016 11:52:04 -0500 Subject: [PATCH] changed format_exception to use BaseException as value (#292) --- stdlib/2.7/traceback.pyi | 2 +- stdlib/3/traceback.pyi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/2.7/traceback.pyi b/stdlib/2.7/traceback.pyi index 4101c207f..291821842 100644 --- a/stdlib/2.7/traceback.pyi +++ b/stdlib/2.7/traceback.pyi @@ -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: ... diff --git a/stdlib/3/traceback.pyi b/stdlib/3/traceback.pyi index 9d4d2fd9b..77982ed7c 100644 --- a/stdlib/3/traceback.pyi +++ b/stdlib/3/traceback.pyi @@ -6,7 +6,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_exception(type: type, value: BaseException, 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: ...