mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
fix linter
This commit is contained in:
parent
b76f4eef50
commit
896dd7f824
2 changed files with 3 additions and 0 deletions
|
@ -34,6 +34,7 @@ Pattern = T.List[T.Tuple[TokenType, T.Optional[str]]]
|
|||
def debug(*args, **kwargs):
|
||||
print(*args, file=sys.stderr, **kwargs)
|
||||
|
||||
|
||||
def _complete(
|
||||
lsp, ast_node: AstNode, tokens: T.List[Token], idx: int, token_idx: int
|
||||
) -> T.Iterator[Completion]:
|
||||
|
|
|
@ -342,6 +342,8 @@ class GirNode:
|
|||
el = self.xml.get_elements("doc")
|
||||
if len(el) == 1:
|
||||
return el[0].cdata.strip().partition("\n")[0]
|
||||
else:
|
||||
return None
|
||||
except:
|
||||
return None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue