Fix six.raise_from value type (#2746)

Fixes #2742
This commit is contained in:
Frazer McLean
2019-01-17 20:16:38 +01:00
committed by Sebastian Rittau
parent 7b69e48d1b
commit 9e5816a539
2 changed files with 2 additions and 2 deletions

View File

@@ -84,7 +84,7 @@ def assertRegex(self: unittest.TestCase, text: AnyStr, expected_regex: Union[Any
def reraise(tp: Optional[Type[BaseException]], value: Optional[BaseException],
tb: Optional[types.TracebackType] = ...) -> NoReturn: ...
def exec_(_code_: Union[unicode, types.CodeType], _globs_: Dict[str, Any] = ..., _locs_: Dict[str, Any] = ...): ...
def raise_from(value: BaseException, from_value: Optional[BaseException]) -> NoReturn: ...
def raise_from(value: Union[BaseException, Type[BaseException]], from_value: Optional[BaseException]) -> NoReturn: ...
print_ = print

View File

@@ -96,7 +96,7 @@ def assertRegex(self: unittest.TestCase, text: AnyStr, expected_regex: Union[Any
exec_ = exec
def reraise(tp: Optional[Type[BaseException]], value: Optional[BaseException], tb: Optional[types.TracebackType] = ...) -> NoReturn: ...
def raise_from(value: BaseException, from_value: Optional[BaseException]) -> NoReturn: ...
def raise_from(value: Union[BaseException, Type[BaseException]], from_value: Optional[BaseException]) -> NoReturn: ...
print_ = print