mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-07 10:20:58 +08:00
Fix six.reraise stub to take an optional traceback (#514)
This commit is contained in:
committed by
Guido van Rossum
parent
79a9ae942e
commit
d56a5e80fb
2
third_party/3/six/__init__.pyi
vendored
2
third_party/3/six/__init__.pyi
vendored
@@ -91,7 +91,7 @@ def assertRegex(self: unittest.TestCase, text: AnyStr, expected_regex: Union[Any
|
||||
|
||||
exec_ = exec
|
||||
|
||||
def reraise(tp: type, value: Optional[BaseException], tb: types.TracebackType = None) -> None: ...
|
||||
def reraise(tp: type, value: Optional[BaseException], tb: Optional[types.TracebackType] = None) -> None: ...
|
||||
def raise_from(value: BaseException, from_value: BaseException) -> None: ...
|
||||
|
||||
print_ = print
|
||||
|
||||
Reference in New Issue
Block a user