# HG changeset patch # User Andrey Skvortsov # Date 1508223103 -10800 # Node ID e69d7e5aff003202aa2261163baaea9087fb882d # Parent 866fb3ab8778362fd70210f78e3465dc5b4f87df fix pylint warning '(no-init) Class has no __init__ method' diff -r 866fb3ab8778 -r e69d7e5aff00 svgui/pyjs/lib/pyjslib.py --- 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 diff -r 866fb3ab8778 -r e69d7e5aff00 tests/tools/check_source.sh --- 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=