INNER CODE UNIT · Python
Finding
llm-d/llm-d · scripts/guide.py:98
class Finding:
"""A single validation problem.
``source`` is ``"yaml"`` or ``"md"`` — which of the two files the
problem was found in. ``line`` is 1-indexed when known.
"""
message: str
source: str = "yaml"
line: int | None = None
severity: str = "error"
def __str__(self) -> str:
loc = f"line {self.line}: " if self.line is not None else ""
return f"{loc}{self.message}"
class Findings: