Skip to content

Diagnostic

🛈 DocStrings

A single diagnostic message from a tool.

Source code in src/anyenv/lsp_servers/_base.py
@dataclass
class Diagnostic:
    """A single diagnostic message from a tool."""

    file: str
    line: int
    column: int
    severity: Literal["error", "warning", "info", "hint"]
    message: str
    source: str
    code: str | None = None
    end_line: int | None = None
    end_column: int | None = None

:fa-brands-github: Show source on GitHub