summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/pylint/plugins/cim_provider_checker.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/pylint/plugins/cim_provider_checker.py b/tools/pylint/plugins/cim_provider_checker.py
index 253cb9d..f46e173 100644
--- a/tools/pylint/plugins/cim_provider_checker.py
+++ b/tools/pylint/plugins/cim_provider_checker.py
@@ -42,6 +42,9 @@ def supress_cim_provider_messages(linter, node):
@param node is a subclass of CIMProvider2
"""
assert isinstance(node, scoped_nodes.Class)
+ if '__init__' in node:
+ linter.disable('W0231', scope='module',
+ line=node['__init__'].lineno)
if ( 'Values' in node
and isinstance(node['Values'], scoped_nodes.Class)):
linter.disable('R0903', scope='module', line=node['Values'].lineno)