Skip to content

Commit 60eadc9

Browse files
committed
✅ Fix pytest really
1 parent 1661b25 commit 60eadc9

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/make_language_server/finders.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,20 @@ def __init__(
3737
query = get_query("include")
3838
super().__init__(query, message, severity)
3939

40-
def capture2uni(self, capture: tuple[Node, str], uri: str) -> UNI | None:
40+
def capture2uni(
41+
self, label: str, nodes: list[Node], uri: str
42+
) -> UNI | None:
4143
r"""Capture2uni.
4244
43-
:param capture:
44-
:type capture: tuple[Node, str]
45+
:param label:
46+
:type label: str
47+
:param nodes:
48+
:type nodes: list[Node]
4549
:param uri:
4650
:type uri: str
4751
:rtype: UNI | None
4852
"""
49-
node, label = capture
50-
uni = UNI(uri, node)
53+
uni = UNI(uri, nodes[0])
5154
return (
5255
uni
5356
if label == "path" and not os.path.isfile(uni.get_path())

0 commit comments

Comments
 (0)