jsonschema_diff.color.base¶
Classes¶
Chain of |
Module Contents¶
- class HighlighterPipeline(
- stages: Iterable[LineHighlighter],
Chain of
LineHighlighter()
stages.- Parameters:
stages – Iterable of
LineHighlighter
instances. The iterable is immediately materialised into a list so the pipeline can be reused.
Note
Each input line is passed through every stage in order.
If a stage exposes a bulk
colorize_lines()
method it is preferred over per-line iteration for performance.
- stages: list[LineHighlighter][source]¶