From 01cf4bd0a3c7842664c800010dd27e8f840206f8 Mon Sep 17 00:00:00 2001 From: Dominik Jain Date: Wed, 19 Nov 2025 22:34:40 +0100 Subject: [PATCH] Fix duplicate type (DiagnosticsSeverity vs DiagnosticSeverity) --- src/solidlsp/ls_types.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/solidlsp/ls_types.py b/src/solidlsp/ls_types.py index bc4b05f3..67000974 100644 --- a/src/solidlsp/ls_types.py +++ b/src/solidlsp/ls_types.py @@ -9,6 +9,8 @@ from typing import NotRequired, Union from typing_extensions import TypedDict +from solidlsp.lsp_protocol_handler.lsp_types import DiagnosticSeverity + URI = str DocumentUri = str Uint = int @@ -327,13 +329,6 @@ class Hover(TypedDict): visualize the hover, e.g. by changing the background color. """ -class DiagnosticsSeverity(IntEnum): - ERROR = 1 - WARNING = 2 - INFORMATION = 3 - HINT = 4 - - class TextDocumentIdentifier(TypedDict): """A literal to identify a text document in the client.""" @@ -377,7 +372,7 @@ class Diagnostic(TypedDict): """ The URI of the text document to which the diagnostics apply. """ range: Range """ The range of the text document to which the diagnostics apply. """ - severity: NotRequired[DiagnosticsSeverity] + severity: NotRequired[DiagnosticSeverity] """ The severity of the diagnostic. """ message: str """ The diagnostic message. """