eric6/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/translations.py

changeset 8209
14470a65a52e
parent 8203
dbcdb07cb600
child 8210
b5903eaa7a7b
diff -r 37836fa8e4ea -r 14470a65a52e eric6/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/translations.py
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/translations.py	Fri Apr 09 21:14:51 2021 +0200
+++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/translations.py	Sat Apr 10 12:34:29 2021 +0200
@@ -76,9 +76,14 @@
     "Y120": QCoreApplication.translate(
         "SimplifyChecker",
         '''Use "class {0}:" instead of "class {0}(object):"'''),
-    "Y121": QCoreApplication.translate(
+    
+    # Python-specifics not part of flake8-simplify
+    "Y181": QCoreApplication.translate(
         "SimplifyChecker",
         '''Use "{0}" instead of "{1}"'''),
+    "Y182": QCoreApplication.translate(
+        "SimplifyChecker",
+        '''Use "super()" instead of "{0}"'''),
     
     # Comparations
     "Y201": QCoreApplication.translate(
@@ -152,7 +157,10 @@
     "Y118": ["foo", "bar_dict"],
     "Y119": ["Foo"],
     "Y120": ["Foo"],
-    "Y121": ["foo += 42", "foo = foo + 42"],
+    
+    # Python-specifics not part of flake8-simplify
+    "Y181": ["foo += 42", "foo = foo + 42"],
+    "Y182": ["super(Foo, self)"],
     
     # Comparations
     "Y201": ["foo", "bar"],

eric ide

mercurial