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

branch
eric7
changeset 10186
91c3ba0767ad
parent 10098
57479c461170
child 10192
f457742dd3d6
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py	Fri Sep 01 15:54:43 2023 +0200
+++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py	Fri Sep 01 16:54:26 2023 +0200
@@ -410,9 +410,14 @@
     ),
     "M533": QCoreApplication.translate(
         "MiscellaneousChecker",
-        "Sets should not contain duplicate items. Duplicate items will be replaced"
+        "Set should not contain duplicate item '{0}'. Duplicate items will be replaced"
         " with a single item at runtime.",
     ),
+    "M534": QCoreApplication.translate(
+        "MiscellaneousChecker",
+        "re.{0} should get '{1}' and 'flags' passed as keyword arguments to avoid"
+        " confusion due to unintuitive argument positions.",
+    ),
     ## Bugbear++
     "M581": QCoreApplication.translate("MiscellaneousChecker", "unncessary f-string"),
     "M582": QCoreApplication.translate(
@@ -563,6 +568,8 @@
     "M524": ["foobar"],
     "M525": ["OSError"],
     "M527": ["foo"],
+    "M533": ["foo"],
+    "M534": ["split", "maxsplit"],
     "M601": ["%s"],
     "M621": [5],
     "M622": ["foo"],

eric ide

mercurial