eric6/Plugins/CheckerPlugins/CodeStyleChecker/translations.py

changeset 7246
c32a350d2414
parent 7245
b47179fbb9d8
child 7247
bf9379f964f3
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/translations.py	Tue Sep 17 19:43:17 2019 +0200
+++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/translations.py	Wed Sep 18 20:25:52 2019 +0200
@@ -801,6 +801,47 @@
         "MiscellaneousChecker",
         "{0}: {1}"),
     
+    
+    ##################################################################
+    ## Messages of the Annotations Checker
+    ##################################################################
+    "A001": QCoreApplication.translate(
+        "AnnotationsChecker",
+        "missing type annotation for function argument '{0}'"),
+    "A002": QCoreApplication.translate(
+        "AnnotationsChecker",
+        "missing type annotation for '*{0}'"),
+    "A003": QCoreApplication.translate(
+        "AnnotationsChecker",
+        "missing type annotation for '**{0}'"),
+    "A101": QCoreApplication.translate(
+        "AnnotationsChecker",
+        "missing type annotation for 'self' in method"),
+    "A102": QCoreApplication.translate(
+        "AnnotationsChecker",
+        "missing type annotation for 'cls' in classmethod"),
+    "A201": QCoreApplication.translate(
+        "AnnotationsChecker",
+        "missing return type annotation for public function"),
+    "A202": QCoreApplication.translate(
+        "AnnotationsChecker",
+        "missing return type annotation for protected function"),
+    "A203": QCoreApplication.translate(
+        "AnnotationsChecker",
+        "missing return type annotation for private function"),
+    "A204": QCoreApplication.translate(
+        "AnnotationsChecker",
+        "missing return type annotation for special method"),
+    "A205": QCoreApplication.translate(
+        "AnnotationsChecker",
+        "missing return type annotation for staticmethod"),
+    "A206": QCoreApplication.translate(
+        "AnnotationsChecker",
+        "missing return type annotation for classmethod"),
+    "A999": QCoreApplication.translate(
+        "AnnotationsChecker",
+        "{0}: {1}"),
+    
     ##################################################################
     ## CodeStyleFixer messages
     ##################################################################
@@ -1016,6 +1057,11 @@
     "M823": ["dict"],
     "M901": ["SyntaxError", "Invalid Syntax"],
     
+    "A001": ["arg1"],
+    "A002": ["args"],
+    "A003": ["kwargs"],
+    "A999": ["SyntaxError", "Invalid Syntax"],
+    
     "FWRITE_ERROR": ["IOError"],
 }
 

eric ide

mercurial