traceback.print_exception(): Arguments optional in Python 3 (#1982)

This commit is contained in:
Sebastian Rittau
2018-03-29 03:45:14 +02:00
committed by Jelle Zijlstra
parent 200273edeb
commit 0170e6d3c7

View File

@@ -10,7 +10,8 @@ _PT = Tuple[str, int, str, Optional[str]]
def print_tb(tb: Optional[TracebackType], limit: Optional[int] = ...,
file: Optional[IO[str]] = ...) -> None: ...
if sys.version_info >= (3,):
def print_exception(etype: Type[BaseException], value: BaseException,
def print_exception(etype: Optional[Type[BaseException]],
value: Optional[BaseException],
tb: Optional[TracebackType], limit: Optional[int] = ...,
file: Optional[IO[str]] = ...,
chain: bool = ...) -> None: ...