Fix mypy issues in tests

This commit is contained in:
Dominik Jain authored and Dominik Jain committed 2026-02-14 19:48:07 +01:00
1 parent 177f0f46cb
commit 7513800a0f
7 files changed
+22 -17

No files matched your search

+2 -2
View File
@@ -137,7 +137,7 @@ class TestLuaLanguageServer:
assert len(refs) >= 5, f"Should find at least 5 references to calculator.add, found {len(refs)}"
# Verify exact reference locations
ref_files = {}
ref_files: dict[str, list[int]] = {}
for ref in refs:
filename = ref.get("uri", "").split("/")[-1]
if filename not in ref_files:
@@ -193,7 +193,7 @@ class TestLuaLanguageServer:
assert len(refs) >= 1, f"Should find at least 1 reference to utils.trim, found {len(refs)}"
# Verify exact reference locations
ref_files = {}
ref_files: dict[str, list[int]] = {}
for ref in refs:
filename = ref.get("uri", "").split("/")[-1]
if filename not in ref_files: