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

branch
eric7
changeset 11147
dee6e106b4d3
parent 11090
f5f5f5803935
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/translations.py	Sun Feb 23 12:42:47 2025 +0100
+++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/translations.py	Mon Feb 24 15:11:18 2025 +0100
@@ -12,85 +12,85 @@
 from PyQt6.QtCore import QCoreApplication
 
 _annotationsMessages = {
-    "A001": QCoreApplication.translate(
+    "A-001": QCoreApplication.translate(
         "AnnotationsChecker", "missing type annotation for function argument '{0}'"
     ),
-    "A002": QCoreApplication.translate(
+    "A-002": QCoreApplication.translate(
         "AnnotationsChecker", "missing type annotation for '*{0}'"
     ),
-    "A003": QCoreApplication.translate(
+    "A-003": QCoreApplication.translate(
         "AnnotationsChecker", "missing type annotation for '**{0}'"
     ),
-    "A101": QCoreApplication.translate(
+    "A-101": QCoreApplication.translate(
         "AnnotationsChecker", "missing type annotation for 'self' in method"
     ),
-    "A102": QCoreApplication.translate(
+    "A-102": QCoreApplication.translate(
         "AnnotationsChecker", "missing type annotation for 'cls' in classmethod"
     ),
-    "A201": QCoreApplication.translate(
+    "A-201": QCoreApplication.translate(
         "AnnotationsChecker", "missing return type annotation for public function"
     ),
-    "A202": QCoreApplication.translate(
+    "A-202": QCoreApplication.translate(
         "AnnotationsChecker", "missing return type annotation for protected function"
     ),
-    "A203": QCoreApplication.translate(
+    "A-203": QCoreApplication.translate(
         "AnnotationsChecker", "missing return type annotation for private function"
     ),
-    "A204": QCoreApplication.translate(
+    "A-204": QCoreApplication.translate(
         "AnnotationsChecker", "missing return type annotation for special method"
     ),
-    "A205": QCoreApplication.translate(
+    "A-205": QCoreApplication.translate(
         "AnnotationsChecker", "missing return type annotation for staticmethod"
     ),
-    "A206": QCoreApplication.translate(
+    "A-206": QCoreApplication.translate(
         "AnnotationsChecker", "missing return type annotation for classmethod"
     ),
-    "A401": QCoreApplication.translate(
+    "A-401": QCoreApplication.translate(
         "AnnotationsChecker",
         "Dynamically typed expressions (typing.Any) are disallowed",
     ),
-    "A402": QCoreApplication.translate(
+    "A-402": QCoreApplication.translate(
         "AnnotationsChecker", "Type comments are disallowed"
     ),
-    "A871": QCoreApplication.translate(
+    "A-871": QCoreApplication.translate(
         "AnnotationsChecker",
         "missing 'from __future__ import annotations' but imports: {0}",
     ),
-    "A872": QCoreApplication.translate(
+    "A-872": QCoreApplication.translate(
         "AnnotationsChecker", "missing 'from __future__ import annotations'"
     ),
-    "A873": QCoreApplication.translate(
+    "A-873": QCoreApplication.translate(
         "AnnotationsChecker",
         "missing 'from __future__ import annotations' but uses simplified type"
         " annotations: {0}",
     ),
-    "A881": QCoreApplication.translate(
+    "A-881": QCoreApplication.translate(
         "AnnotationsChecker", "type annotation coverage of {0}% is too low"
     ),
-    "A891": QCoreApplication.translate(
+    "A-891": QCoreApplication.translate(
         "AnnotationsChecker", "type annotation is too complex ({0} > {1})"
     ),
-    "A892": QCoreApplication.translate(
+    "A-892": QCoreApplication.translate(
         "AnnotationsChecker", "type annotation is too long ({0} > {1})"
     ),
-    "A901": QCoreApplication.translate(
+    "A-901": QCoreApplication.translate(
         "AnnotationsChecker",
         "'typing.Union' is deprecated, use '|' instead (see PEP 604)",
     ),
-    "A911": QCoreApplication.translate(
+    "A-911": QCoreApplication.translate(
         "AnnotationsChecker",
         "'typing.{0}' is deprecated, use '{1}' instead (see PEP 585)",
     ),
 }
 
 _annotationsMessagesSampleArgs = {
-    "A001": ["arg1"],
-    "A002": ["args"],
-    "A003": ["kwargs"],
-    "A871": ["Dict, List"],
-    "A873": ["dict, list"],
-    "A881": [60],
-    "A891": [5, 3],
-    "A892": [10, 7],
-    "A911": ["List", "list"],
+    "A-001": ["arg1"],
+    "A-002": ["args"],
+    "A-003": ["kwargs"],
+    "A-871": ["Dict, List"],
+    "A-873": ["dict, list"],
+    "A-881": [60],
+    "A-891": [5, 3],
+    "A-892": [10, 7],
+    "A-911": ["List", "list"],
 }

eric ide

mercurial