mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
fix sys.exc_info return type (#246)
This commit is contained in:
committed by
Guido van Rossum
parent
4039a1a686
commit
c40a260b47
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user