From 0c25474ac9fa54787d5e9397dd49646c496439a4 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Fri, 17 Aug 2018 09:06:07 +0200 Subject: [PATCH] Remove wrong TODO note python/mypy#1178 is about variable-length tuples, while exc_info() always returns a tuple with length 3. Ideally, exc_info() would return Union[Tuple[Type[_E], _E, TracebackType], Tuple[None, None, None]], but that is a different issue. --- stdlib/2/sys.pyi | 1 - 1 file changed, 1 deletion(-) diff --git a/stdlib/2/sys.pyi b/stdlib/2/sys.pyi index 2ed8fdfa5b2c..33fca3bea8f5 100644 --- a/stdlib/2/sys.pyi +++ b/stdlib/2/sys.pyi @@ -116,7 +116,6 @@ def __displayhook__(value: int) -> None: ... def __excepthook__(type_: type, value: BaseException, traceback: TracebackType) -> None: ... def exc_clear() -> None: raise DeprecationWarning() -# TODO should be a union of tuple, see mypy#1178 def exc_info() -> _OptExcInfo: ... # sys.exit() accepts an optional argument of anything printable