fix pylint warning '(no-init) Class has no __init__ method'
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Tue, 17 Oct 2017 09:51:43 +0300
changeset 1873 e69d7e5aff00
parent 1872 866fb3ab8778
child 1874 a347459df3a4
fix pylint warning '(no-init) Class has no __init__ method'
svgui/pyjs/lib/pyjslib.py
tests/tools/check_source.sh
--- a/svgui/pyjs/lib/pyjslib.py	Mon Oct 16 17:20:31 2017 +0300
+++ b/svgui/pyjs/lib/pyjslib.py	Tue Oct 17 09:51:43 2017 +0300
@@ -186,9 +186,10 @@
 """)
 
 
-# pylint: disable=C1001
+# pylint: disable=old-style-class
 class Object:
-    pass
+    def __init__(self):
+        pass
 
 
 object = Object
--- a/tests/tools/check_source.sh	Mon Oct 16 17:20:31 2017 +0300
+++ b/tests/tools/check_source.sh	Tue Oct 17 09:51:43 2017 +0300
@@ -203,6 +203,7 @@
     disable=$disable,W0621        # (redefined-outer-name) Redefining name 'Y' from outer scope (line X)    
     disable=$disable,W0122        # (exec-used) Use of exec
     disable=$disable,W0123        # (eval-used) Use of eval
+    disable=$disable,I0011        # (locally-disabled) Locally disabling ungrouped-imports (C0412)
 
     # It'd be nice to fix warnings below some day
     disable=$disable,C0111        # missing-docstring
@@ -258,6 +259,7 @@
     enable=$enable,E0401          # (import-error) Unable to import 'X'
     enable=$enable,E1121          # (too-many-function-args) Too many positional arguments for function call
     enable=$enable,E0602          # (undefined-variable) Undefined variable 'X'
+    enable=$enable,W0232          # (no-init) Class has no __init__ method
     # enable=
 
     options=