/
niceSOFT
/
python3-pytest
Обзор
Документация
Войти
/
niceSOFT
/
python3-pytest
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/_pytest/assertion/highlight.py
11 строк
327 B
Pierre Sassoulas
Move comparison helpers to their own files out of ``assertion/util.py`` (#14520)
25 май 2026, 22:50
Не верифицирован
25 май 2026, 22:50
58d8b55
Код
Авторство
О чём код?
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