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

branch
eric7
changeset 9276
e6748a5e24b9
parent 9221
bf71ee032bb4
child 9653
e67609152c5e
diff -r 1a7d545d3ef2 -r e6748a5e24b9 src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/translations.py
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/translations.py	Wed Jul 27 18:02:43 2022 +0200
+++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/translations.py	Thu Jul 28 14:19:57 2022 +0200
@@ -49,10 +49,17 @@
         "AnnotationsChecker",
         "PEP 484 disallows both type annotations and type comments",
     ),
+    "A401": QCoreApplication.translate(
+        "AnnotationsChecker",
+        "Dynamically typed expressions (typing.Any) are disallowed",
+    ),
     "A871": QCoreApplication.translate(
         "AnnotationsChecker",
         "missing 'from __future__ import annotations' but imports: {0}",
     ),
+    "A872": QCoreApplication.translate(
+        "AnnotationsChecker", "missing 'from __future__ import annotations'"
+    ),
     "A881": QCoreApplication.translate(
         "AnnotationsChecker", "type annotation coverage of {0}% is too low"
     ),

eric ide

mercurial