Download .venv/lib/python3.12/site-packages/_pytest/assertion/highlight.py from FaustDerLegende/split: direct link, hf CLI and curl.
- Browser
- Download file 327 Bytes
-
https://huggingface.co/datasets/FaustDerLegende/split/resolve/main/.venv/lib/python3.12/site-packages/_pytest/assertion/highlight.py
- Command line
-
hf download hf://datasets/FaustDerLegende/split/.venv/lib/python3.12/site-packages/_pytest/assertion/highlight.py
-
curl -L -o highlight.py https://huggingface.co/datasets/FaustDerLegende/split/resolve/main/.venv/lib/python3.12/site-packages/_pytest/assertion/highlight.py
327 Bytes
| from __future__ import annotations | |
| from typing import Literal | |
| def dummy_highlighter(source: str, lexer: Literal["diff", "python"] = "python") -> str: | |
| """Dummy highlighter that returns the text unprocessed. | |
| Needed for _notin_text, as the diff gets post-processed to only show the "+" part. | |
| """ | |
| return source | |