diff --git a/package.json b/package.json index e57ba9f..4c8a5eb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "vs-code-aster", "displayName": "VS Code Aster", - "version": "1.0.1", + "version": "1.0.2", "description": "VS Code extension for code_aster", "publisher": "simvia", "license": "GPL-3.0", @@ -148,4 +148,4 @@ "tailwindcss": "^4.1.17", "uuid": "^13.0.0" } -} +} \ No newline at end of file diff --git a/python/lsp/managers/hover_manager.py b/python/lsp/managers/hover_manager.py index 3a634a8..8b43616 100644 --- a/python/lsp/managers/hover_manager.py +++ b/python/lsp/managers/hover_manager.py @@ -3,6 +3,7 @@ Relies on CommandCore to get the document registry and CATA metadata """ import re +from typing import Optional from command_core import CommandCore from lsprotocol.types import ( @@ -11,6 +12,8 @@ MarkupKind, ) + + class HoverManager: """ Manager for providing hover info in a code_aster document. @@ -19,7 +22,7 @@ class HoverManager: def __init__(self): self.core = CommandCore() - def display(self, doc_uri, position) -> Hover | None: + def display(self, doc_uri, position) -> Optional[Hover]: """ Return a Hover object for the given document URI and position. """