Fix type for six.reraise to make it match sys.exc_info()

The docs for six say the simple case is `reraise(*sys.exc_info())`
This commit is contained in:
David Euresti
2016-12-26 00:38:40 -08:00
committed by Łukasz Langa
parent 37dff4d8bc
commit 8a8680371a
2 changed files with 4 additions and 3 deletions

View File

@@ -14,6 +14,7 @@ from typing import (
Optional,
Pattern,
Tuple,
Type,
TypeVar,
Union,
ValuesView,
@@ -91,7 +92,7 @@ def assertRegex(self: unittest.TestCase, text: AnyStr, expected_regex: Union[Any
exec_ = exec
def reraise(tp: type, value: Optional[BaseException], tb: Optional[types.TracebackType] = None) -> None: ...
def reraise(tp: Optional[Type[BaseException]], value: Optional[BaseException], tb: Optional[types.TracebackType] = None) -> None: ...
def raise_from(value: BaseException, from_value: BaseException) -> None: ...
print_ = print