fix sys.exc_info return type (#246)

This commit is contained in:
Valérian Rousset
2016-06-06 17:52:40 +02:00
committed by Guido van Rossum
parent 4039a1a686
commit c40a260b47
2 changed files with 9 additions and 2 deletions

View File

@@ -117,7 +117,10 @@ def _current_frames() -> Dict[int, Any]: ...
def displayhook(value: Optional[int]) -> None: ...
def excepthook(type_: type, value: BaseException,
traceback: TracebackType) -> None: ...
def exc_info() -> Tuple[type, BaseException, TracebackType]: ...
# TODO should be a union of tuple, see mypy#1178
def exc_info() -> Tuple[Optional[type],
Optional[BaseException],
Optional[TracebackType]]: ...
# sys.exit() accepts an optional argument of anything printable
def exit(arg: Any = ...) -> None:
raise SystemExit()