summaryrefslogtreecommitdiffstats
path: root/tests/lsp_tests/lsp_tutil.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lsp_tests/lsp_tutil.py')
-rw-r--r--tests/lsp_tests/lsp_tutil.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/lsp_tests/lsp_tutil.py b/tests/lsp_tests/lsp_tutil.py
index 2873f72..0843f79 100644
--- a/tests/lsp_tests/lsp_tutil.py
+++ b/tests/lsp_tests/lsp_tutil.py
@@ -1,4 +1,4 @@
-from typing import Tuple
+from typing import Tuple, Union
try:
from pygls.server import LanguageServer
@@ -6,6 +6,7 @@ try:
TextDocumentItem,
Position,
)
+ from debputy.lsp.debputy_ls import DebputyLanguageServer
except ImportError:
pass
@@ -26,7 +27,7 @@ def _locate_cursor(text: str) -> Tuple[str, "Position"]:
def put_doc_with_cursor(
- ls: "LanguageServer",
+ ls: Union["LanguageServer", "DebputyLanguageServer"],
uri: str,
language_id: str,
content: str,