Skip to content

Commit 0170e6d

Browse files
srittauJelleZijlstra
authored andcommitted
traceback.print_exception(): Arguments optional in Python 3 (#1982)
1 parent 200273e commit 0170e6d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/2and3/traceback.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ _PT = Tuple[str, int, str, Optional[str]]
1010
def print_tb(tb: Optional[TracebackType], limit: Optional[int] = ...,
1111
file: Optional[IO[str]] = ...) -> None: ...
1212
if sys.version_info >= (3,):
13-
def print_exception(etype: Type[BaseException], value: BaseException,
13+
def print_exception(etype: Optional[Type[BaseException]],
14+
value: Optional[BaseException],
1415
tb: Optional[TracebackType], limit: Optional[int] = ...,
1516
file: Optional[IO[str]] = ...,
1617
chain: bool = ...) -> None: ...

0 commit comments

Comments
 (0)