mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
fix sys.exc_info return type (#246)
This commit is contained in:
committed by
Guido van Rossum
parent
4039a1a686
commit
c40a260b47
@@ -108,7 +108,11 @@ def __displayhook__(value: int) -> None: ...
|
||||
def __excepthook__(type_: type, value: BaseException, traceback: TracebackType) -> None: ...
|
||||
def exc_clear() -> None:
|
||||
raise DeprecationWarning()
|
||||
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