Fix the signature of unittest.TestCase.assertLogs #3513 (#3514)

This commit is contained in:
Denis Eliseev
2019-11-29 17:00:16 +03:00
committed by Jelle Zijlstra
parent 615fa41c25
commit 74ac70bd28

View File

@@ -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