From 383b8ed0f5d32f84967cf3152fe17f0373a662b2 Mon Sep 17 00:00:00 2001 From: Shane Harvey Date: Fri, 22 Jul 2022 17:20:00 -0700 Subject: [PATCH] Fix hints for TestCase.assertRaises --- stdlib/unittest/case.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/unittest/case.pyi b/stdlib/unittest/case.pyi index a78fb4a1252a..7db217077f1b 100644 --- a/stdlib/unittest/case.pyi +++ b/stdlib/unittest/case.pyi @@ -145,7 +145,7 @@ class TestCase: def assertRaises( # type: ignore[misc] self, expected_exception: type[BaseException] | tuple[type[BaseException], ...], - callable: Callable[..., object], + callable: Callable[..., Any], *args: Any, **kwargs: Any, ) -> None: ...