Skip to content

Commit

Permalink
✅ Fix pytest really
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Dec 31, 2024
1 parent 1661b25 commit 60eadc9
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/make_language_server/finders.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,20 @@ def __init__(
query = get_query("include")
super().__init__(query, message, severity)

def capture2uni(self, capture: tuple[Node, str], uri: str) -> UNI | None:
def capture2uni(
self, label: str, nodes: list[Node], uri: str
) -> UNI | None:
r"""Capture2uni.
:param capture:
:type capture: tuple[Node, str]
:param label:
:type label: str
:param nodes:
:type nodes: list[Node]
:param uri:
:type uri: str
:rtype: UNI | None
"""
node, label = capture
uni = UNI(uri, node)
uni = UNI(uri, nodes[0])
return (
uni
if label == "path" and not os.path.isfile(uni.get_path())
Expand Down

0 comments on commit 60eadc9

Please sign in to comment.