src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/translations.py

branch
eric7
changeset 10355
f3187412ecf4
parent 10047
cc9ead6d1c46
child 10359
de0420dac60e
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/translations.py	Wed Nov 29 14:29:44 2023 +0100
+++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/translations.py	Wed Nov 29 14:31:31 2023 +0100
@@ -175,6 +175,10 @@
     "Y910": QCoreApplication.translate(
         "SimplifyChecker", '''Use "{0}" instead of "{1}"'''
     ),
+    "Y911": QCoreApplication.translate(
+        "SimplifyChecker",
+        '''Use "{0}.items()" instead of "zip({0}.keys(), {0}.values())"'''
+    ),
 }
 
 _simplifyMessagesSampleArgs = {
@@ -229,4 +233,5 @@
     "Y906": ["os.path.join(a, b, c)", "os.path.join(a,os.path.join(b,c))"],
     "Y907": ["int", "Union[int, None]"],
     "Y909": ["foo = foo"],
+    "Y911": ["foo"],
 }

eric ide

mercurial