Skip to content

DiffLine

🛈 DocStrings

One line of a hunk with its line numbers (None on the side it is missing from).

Source code in src/acptui/protocol/diff.py
@dataclass
class DiffLine:
    """One line of a hunk with its line numbers (``None`` on the side it is missing from)."""

    kind: LineKind
    text: str
    old_no: int | None
    new_no: int | None

:fa-brands-github: Show source on GitHub