diff --git a/stdlib/unittest/case.pyi b/stdlib/unittest/case.pyi index c63b94396..9bcd2c05a 100644 --- a/stdlib/unittest/case.pyi +++ b/stdlib/unittest/case.pyi @@ -278,7 +278,10 @@ class _AssertLogsContext(Generic[_L]): LOGGING_FORMAT: str records: list[logging.LogRecord] output: list[str] - def __init__(self, test_case: TestCase, logger_name: str, level: int) -> None: ... + if sys.version_info >= (3, 10): + def __init__(self, test_case: TestCase, logger_name: str, level: int, no_logs: bool) -> None: ... + else: + def __init__(self, test_case: TestCase, logger_name: str, level: int) -> None: ... def __enter__(self) -> _L: ... def __exit__( self, exc_type: Type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None