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

branch
eric7
changeset 11140
b823386f7591
parent 11138
1f743bad6fd3
child 11147
dee6e106b4d3
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py	Sun Feb 16 15:06:29 2025 +0100
+++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/translations.py	Mon Feb 17 16:28:25 2025 +0100
@@ -636,6 +636,16 @@
         "MiscellaneousChecker",
         "commented code lines should be removed",
     ),
+    ## structural pattern matching
+    "M901": QCoreApplication.translate(
+        "MiscellaneousChecker",
+        "matching a default value should raise a `ValueError` exception",
+    ),
+    "M902": QCoreApplication.translate(
+        "MiscellaneousChecker",
+        "matching a default value should not contain a `return` statement before "
+        "raising a `ValueError` exception",
+    ),
 }
 
 _miscellaneousMessagesSampleArgs = {

eric ide

mercurial