A non-fatal codegen warning. Collected by ``_diag_add`` during a run and flushed once at the end via ``_diag_flush``.
| 33 | |
| 34 | @dataclass |
| 35 | class Diagnostic: |
| 36 | """A non-fatal codegen warning. Collected by ``_diag_add`` during a |
| 37 | run and flushed once at the end via ``_diag_flush``.""" |
| 38 | message: str |
| 39 | source: str = "" # short tag for grouping (e.g. "schema_drift") |
| 40 | |
| 41 | |
| 42 | class DiagBuffer: |