Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
z80dev committed Dec 14, 2024
1 parent 2ab1a7a commit 3cc3fbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ def test_parse_fncall_expression():
assert utils.parse_fncall_expression(text) == ("self", "bar")

text = "foobar"
assert utils.parse_fncall_expression(text) == None
assert utils.parse_fncall_expression(text) is None
5 changes: 1 addition & 4 deletions vyper_lsp/analyzer/AstAnalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,7 @@ def signature_help(
logger.info(f"args: {fn.arguments}")

# this returns for all external functions
if not expression.startswith("self."):
return None

if not fn_name:
if module != "self":
return None

node = self.ast.find_function_declaration_node_for_name(fn_name)
Expand Down

0 comments on commit 3cc3fbd

Please sign in to comment.