diff -r 2aa8953a2145 -r b925628bf91f eric6/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/translations.py --- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/translations.py Sat Apr 03 09:47:25 2021 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/translations.py Sat Apr 03 10:44:07 2021 +0200 @@ -34,10 +34,7 @@ "Y107": QCoreApplication.translate( "SimplifyChecker", '''Don't use return in try/except and finally'''), - "Y108a": QCoreApplication.translate( - "SimplifyChecker", - '''Use ternary operator instead of if-else-block'''), - "Y108b": QCoreApplication.translate( + "Y108": QCoreApplication.translate( "SimplifyChecker", '''Use ternary operator "{0} = {1} if {2} else {3}" ''' '''instead of if-else-block'''), @@ -75,6 +72,9 @@ "Y119": QCoreApplication.translate( "SimplifyChecker", '''Use a dataclass for "class {0}"'''), + "Y120": QCoreApplication.translate( + "SimplifyChecker", + '''Use "class {0}:" instead of "class {0}(object):"'''), } _simplifyMessagesSampleArgs = { @@ -82,7 +82,7 @@ "Y103": ["foo != bar"], "Y104": ["iterable"], "Y105": ["Exception"], - "Y108b": ["foo", "bar", "condition", "baz"], + "Y108": ["foo", "bar", "condition", "baz"], "Y109": ["foo", "[1, 42]", "foo == 1 or foo == 42"], "Y110": ["check", "foo", "iterable"], "Y111": ["check", "foo", "iterable"], @@ -92,5 +92,6 @@ "Y116": ["mapping.get(foo, 42)"], "Y117": ["with Foo() as foo, Bar() as bar:"], "Y118": ["foo", "bar_dict"], - "Y119": ["Foo"] + "Y119": ["Foo"], + "Y120": ["Foo"], }