mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
traceback.print_exception(): Arguments optional in Python 3 (#1982)
This commit is contained in:
committed by
Jelle Zijlstra
parent
200273edeb
commit
0170e6d3c7
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user