mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Add no_logs parameter to AssertLogsContext (#6426)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user