--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/translations.py Wed May 22 18:44:36 2019 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/translations.py Wed May 22 18:54:05 2019 +0200 @@ -534,8 +534,7 @@ "using .strip() with multi-character strings is misleading"), "M503": QCoreApplication.translate( "MiscellaneousChecker", - """using 'hasattr(x, "__call__")' to test if 'x' is callable is""" - """ unreliable"""), + "do not call assert False since python -O removes these calls"), "M504": QCoreApplication.translate( "MiscellaneousChecker", "'sys.maxint' is not defined in Python 3 - use 'sys.maxsize'"), @@ -551,16 +550,32 @@ "MiscellaneousChecker", "loop control variable {0} not used within the loop body -" " start the name with an underscore"), + "M508": QCoreApplication.translate( + "MiscellaneousChecker", + "unncessary f-string"), + "M509": QCoreApplication.translate( + "MiscellaneousChecker", + "cannot use 'self.__class__' as first argument of 'super()' call"), "M511": QCoreApplication.translate( "MiscellaneousChecker", - "Python 3 does not include '.iter*' methods on dictionaries"), + """using 'hasattr(x, "__call__")' to test if 'x' is callable is""" + """ unreliable"""), "M512": QCoreApplication.translate( "MiscellaneousChecker", - "Python 3 does not include '.view*' methods on dictionaries"), + "do not call getattr with a constant attribute value"), "M513": QCoreApplication.translate( "MiscellaneousChecker", + "do not call setattr with a constant attribute value"), + "M521": QCoreApplication.translate( + "MiscellaneousChecker", + "Python 3 does not include '.iter*' methods on dictionaries"), + "M522": QCoreApplication.translate( + "MiscellaneousChecker", + "Python 3 does not include '.view*' methods on dictionaries"), + "M523": QCoreApplication.translate( + "MiscellaneousChecker", "'.next()' does not exist in Python 3"), - "M514": QCoreApplication.translate( + "M524": QCoreApplication.translate( "MiscellaneousChecker", "'__metaclass__' does nothing on Python 3 -" " use 'class MyClass(BaseClass, metaclass=...)'"),