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

changeset 8210
b5903eaa7a7b
parent 8209
14470a65a52e
child 8211
8322a6f219ff
equal deleted inserted replaced
8209:14470a65a52e 8210:b5903eaa7a7b
74 "SimplifyChecker", 74 "SimplifyChecker",
75 '''Use a dataclass for "class {0}"'''), 75 '''Use a dataclass for "class {0}"'''),
76 "Y120": QCoreApplication.translate( 76 "Y120": QCoreApplication.translate(
77 "SimplifyChecker", 77 "SimplifyChecker",
78 '''Use "class {0}:" instead of "class {0}(object):"'''), 78 '''Use "class {0}:" instead of "class {0}(object):"'''),
79 "Y121": QCoreApplication.translate(
80 "SimplifyChecker",
81 '''Use "class {0}({1}):" instead of "class {0}({1}, object):"'''),
79 82
80 # Python-specifics not part of flake8-simplify 83 # Python-specifics not part of flake8-simplify
81 "Y181": QCoreApplication.translate( 84 "Y181": QCoreApplication.translate(
82 "SimplifyChecker", 85 "SimplifyChecker",
83 '''Use "{0}" instead of "{1}"'''), 86 '''Use "{0}" instead of "{1}"'''),
155 "Y116": ["bar_dict.get(foo, 42)"], 158 "Y116": ["bar_dict.get(foo, 42)"],
156 "Y117": ["with Foo() as foo, Bar() as bar:"], 159 "Y117": ["with Foo() as foo, Bar() as bar:"],
157 "Y118": ["foo", "bar_dict"], 160 "Y118": ["foo", "bar_dict"],
158 "Y119": ["Foo"], 161 "Y119": ["Foo"],
159 "Y120": ["Foo"], 162 "Y120": ["Foo"],
163 "Y121": ["FooBar", "Foo"],
160 164
161 # Python-specifics not part of flake8-simplify 165 # Python-specifics not part of flake8-simplify
162 "Y181": ["foo += 42", "foo = foo + 42"], 166 "Y181": ["foo += 42", "foo = foo + 42"],
163 "Y182": ["super(Foo, self)"], 167 "Y182": ["super(Foo, self)"],
164 168

eric ide

mercurial