summaryrefslogtreecommitdiffstats
path: root/src/debputy/lsp/diagnostics.py
blob: 618b91dd5cb4ad7f73a2419d323d4bd20d2c795d (plain)
1
2
3
4
5
6
7
8
from typing import TypedDict, NotRequired, List, Any, Literal, Optional

LintSeverity = Literal["error", "warning", "informational", "pedantic", "spelling"]


class DiagnosticData(TypedDict):
    quickfixes: NotRequired[Optional[List[Any]]]
    lint_severity: NotRequired[Optional[LintSeverity]]