172 "Y909": QCoreApplication.translate( |
172 "Y909": QCoreApplication.translate( |
173 "SimplifyChecker", '''Remove reflexive assignment "{0}"''' |
173 "SimplifyChecker", '''Remove reflexive assignment "{0}"''' |
174 ), |
174 ), |
175 "Y910": QCoreApplication.translate( |
175 "Y910": QCoreApplication.translate( |
176 "SimplifyChecker", '''Use "{0}" instead of "{1}"''' |
176 "SimplifyChecker", '''Use "{0}" instead of "{1}"''' |
|
177 ), |
|
178 "Y911": QCoreApplication.translate( |
|
179 "SimplifyChecker", |
|
180 '''Use "{0}.items()" instead of "zip({0}.keys(), {0}.values())"''' |
177 ), |
181 ), |
178 } |
182 } |
179 |
183 |
180 _simplifyMessagesSampleArgs = { |
184 _simplifyMessagesSampleArgs = { |
181 # Python-specifics |
185 # Python-specifics |
227 """domains = "de com net org".split()""", |
231 """domains = "de com net org".split()""", |
228 ], |
232 ], |
229 "Y906": ["os.path.join(a, b, c)", "os.path.join(a,os.path.join(b,c))"], |
233 "Y906": ["os.path.join(a, b, c)", "os.path.join(a,os.path.join(b,c))"], |
230 "Y907": ["int", "Union[int, None]"], |
234 "Y907": ["int", "Union[int, None]"], |
231 "Y909": ["foo = foo"], |
235 "Y909": ["foo = foo"], |
|
236 "Y911": ["foo"], |
232 } |
237 } |