From 3cc3fbde7829f6d7677b31b23617c16e032ec7dd Mon Sep 17 00:00:00 2001 From: z80 Date: Sat, 14 Dec 2024 17:08:12 -0500 Subject: [PATCH] lint fix --- tests/test_utils.py | 2 +- vyper_lsp/analyzer/AstAnalyzer.py | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/test_utils.py b/tests/test_utils.py index 900c7af..d6bbea7 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -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 diff --git a/vyper_lsp/analyzer/AstAnalyzer.py b/vyper_lsp/analyzer/AstAnalyzer.py index a8045f9..40fedfb 100644 --- a/vyper_lsp/analyzer/AstAnalyzer.py +++ b/vyper_lsp/analyzer/AstAnalyzer.py @@ -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)