"""Shared :class:`BaseSeverity` primitive for diagnostics and validation issues.A single :class:`BaseSeverity` enum carries the INFO < WARNING < ERRORcontract for every diagnostic, finding, and validation issue in theproject. Call sites import this type directly; semantic context livesin the field name (``diagnostic_severity``, ``finding_severity``,``validation_severity``), not in duplicate type names.Diagnostic records pair this severity with :class:`Translatable` messagekeys, keeping importance and localization concerns separate.The string values are lowercase (``"info"``, ``"warning"``,``"error"``) to match the on-disk JSON convention used by theledger-import diagnostic fixtures; the member names stay uppercaseto follow the standard enum-member convention."""from__future__importannotationsfromenumimportStrEnum
[docs]classBaseSeverity(StrEnum):"""Shared severity primitive: INFO < WARNING < ERROR."""INFO="info"WARNING="warning"ERROR="error"