summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2020-11-14 16:11:00 +0100
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2020-11-28 16:09:53 +0100
commitb762f2d106338a4c58d4998c0623084883103d0d (patch)
treebbed2574ce1555b56d066fb4d06defc2fd80b42a
parentc42c677b34fb1de65f55174fc43410d4a6acad50 (diff)
downloadpylint-git-b762f2d106338a4c58d4998c0623084883103d0d.tar.gz
Fix 'function could be static' in testutils.py
-rw-r--r--pylint/testutils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pylint/testutils.py b/pylint/testutils.py
index d910e2a7c..f06ceefbe 100644
--- a/pylint/testutils.py
+++ b/pylint/testutils.py
@@ -196,7 +196,8 @@ class UnittestLinter:
# Do not test col_offset for now since changing Message breaks everything
self._messages.append(Message(msg_id, line, node, args, confidence))
- def is_message_enabled(self, *unused_args, **unused_kwargs):
+ @staticmethod
+ def is_message_enabled(*unused_args, **unused_kwargs):
return True
def add_stats(self, **kwargs):