pylint: Enable and fix no-self-use warnings

This commit is contained in:
Kamil Śliwak
2021-12-21 15:30:11 +01:00
parent 449f56c15b
commit 784ae91b41
4 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -39,6 +39,7 @@ class Rule:
self.error('Rule is incorrect.\nModel: ' + str(m))
self.solver.pop()
def error(self, msg):
@classmethod
def error(cls, msg):
print(msg)
sys.exit(1)