Debian Codegraph @

src/_pytest/assertion/highlight.py

raw
1 from __future__ import annotations
2
3 from typing import Literal
4
5
6 def dummy_highlighter(source: str, lexer: Literal["diff", "python"] = "python") -> str:
7 """Dummy highlighter that returns the text unprocessed.
8
9 Needed for _notin_text, as the diff gets post-processed to only show the "+" part.
10 """
11 return source