INNER CODE UNIT · Python
report
llm-d/llm-d · scripts/guide.py:151
def report(self, stream=sys.stderr, prefix: str = "") -> None:
for f in self._items:
print(f"{prefix}{f.severity}: {f}", file=stream)
class GuideError(Exception):
"""Raised when an operation cannot proceed (e.g. rendering a guide whose
README markers are malformed). Carries the ``Findings`` that caused it."""
def __init__(self, message: str, findings: Findings | None = None) -> None:
super().__init__(message)
self.findings = findings or Findings()
# --------------------------------------------------------------------------
# YAML loading — strict about duplicate keys
# --------------------------------------------------------------------------
#