From 7a73660f3fc7917a5b0fb21046032f6bbaa3b049 Mon Sep 17 00:00:00 2001 From: Shane Harvey Date: Sat, 23 Jul 2022 02:43:38 -0700 Subject: [PATCH] Fix hints for TestCase.assertRaises (#8373) --- 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 a78fb4a12..7db217077 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: ...