diff --git a/stdlib/3/unittest/__init__.pyi b/stdlib/3/unittest/__init__.pyi index 5f0bd4833..8f092994b 100644 --- a/stdlib/3/unittest/__init__.pyi +++ b/stdlib/3/unittest/__init__.pyi @@ -12,7 +12,7 @@ from types import ModuleType, TracebackType _T = TypeVar('_T') _FT = TypeVar('_FT', bound=Callable[..., Any]) -_E = TypeVar('_E', bound=Exception) +_E = TypeVar('_E', bound=BaseException) def expectedFailure(func: _FT) -> _FT: ...