Skip to content

Commit

Permalink
Remove wrong TODO note
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
srittau committed Aug 17, 2018
1 parent d716634 commit 0c25474
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion stdlib/2/sys.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0c25474

Please sign in to comment.