From 74ac70bd281a49553e6efcc10cc95757a539b635 Mon Sep 17 00:00:00 2001 From: Denis Eliseev Date: Fri, 29 Nov 2019 17:00:16 +0300 Subject: [PATCH] Fix the signature of unittest.TestCase.assertLogs #3513 (#3514) --- stdlib/3/unittest/case.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/3/unittest/case.pyi b/stdlib/3/unittest/case.pyi index dbbf1048f..3a17a3a9a 100644 --- a/stdlib/3/unittest/case.pyi +++ b/stdlib/3/unittest/case.pyi @@ -115,7 +115,7 @@ class TestCase: expected_regex: Union[str, bytes, Pattern[str], Pattern[bytes]], msg: Any = ...) -> _AssertWarnsContext: ... def assertLogs( - self, logger: Optional[logging.Logger] = ..., + self, logger: Optional[Union[str, logging.Logger]] = ..., level: Union[int, str, None] = ... ) -> _AssertLogsContext: ... @overload