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 "{0}" instead of "{1}"'''), |
79 |
82 |
80 # Comparations |
83 # Comparations |
81 "Y201": QCoreApplication.translate( |
84 "Y201": QCoreApplication.translate( |
82 "SimplifyChecker", |
85 "SimplifyChecker", |
83 '''Use "{0} != {1}" instead of "not {0} == {1}"'''), |
86 '''Use "{0} != {1}" instead of "not {0} == {1}"'''), |
148 "Y117": ["with Foo() as foo, Bar() as bar:"], |
151 "Y117": ["with Foo() as foo, Bar() as bar:"], |
149 "Y118": ["foo", "bar_dict"], |
152 "Y118": ["foo", "bar_dict"], |
150 "Y119": ["Foo"], |
153 "Y119": ["Foo"], |
151 "Y120": ["Foo"], |
154 "Y120": ["Foo"], |
152 |
155 |
|
156 "Y131": ["foo += 42", "foo = foo + 42"], |
|
157 |
153 # Comparations |
158 # Comparations |
154 "Y201": ["foo", "bar"], |
159 "Y201": ["foo", "bar"], |
155 "Y202": ["foo", "bar"], |
160 "Y202": ["foo", "bar"], |
156 "Y203": ["foo", "bar"], |
161 "Y203": ["foo", "bar"], |
157 "Y204": ["foo", "bar"], |
162 "Y204": ["foo", "bar"], |