text_lint.linter.logging.contexts.assertion
- text_lint.linter.logging.contexts.assertion(linter: Linter, operation: AssertionBase) Generator[None, None, None][source]
Wrap the linter’s individual assertion operations in logging statements.
- Parameters:
linter (Linter) – The linter instance being logged.
operation (AssertionBase) – The individual assertion operation being logged.
- Returns:
A logging context manager.
- Return type:
Generator[None, None, None]