← Files AgentBrokoARCHIVED FILE

.venv/Lib/site-packages/_pytest/assertion/highlight.py

327 Bytes · Sep 30, 2026 · 23:15 UTC

↓ Download file

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

SHA-256: 015a92e17eb83e0d5a7a45e73984687898a02000d6c0075b76d1bff5b93fdfe7