summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/pylint/plugins/cim_provider_checker.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/pylint/plugins/cim_provider_checker.py b/tools/pylint/plugins/cim_provider_checker.py
index e62e62f..8691b5a 100644
--- a/tools/pylint/plugins/cim_provider_checker.py
+++ b/tools/pylint/plugins/cim_provider_checker.py
@@ -62,6 +62,8 @@ def supress_cim_provider_messages(linter, node):
'delete_instance')
# implementation of generated methods may not use all arguments
for child in node.get_children():
+ if not isinstance(child, scoped_nodes.Function):
+ continue
if (child.name in generated_methods
or child.name.startswith('cim_method_')):
linter.disable('W0613', scope='module',