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

branch
eric7
changeset 8773
3dd81b827455
parent 8318
962bce857696
child 8881
54e42bc2437a
--- a/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/translations.py	Tue Nov 16 18:00:40 2021 +0100
+++ b/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/translations.py	Thu Nov 18 19:37:14 2021 +0100
@@ -49,6 +49,10 @@
         "AnnotationsChecker",
         "PEP 484 disallows both type annotations and type comments"),
     
+    "A871": QCoreApplication.translate(
+        "AnnotationsChecker",
+        "missing 'from __future__ import annotations' but imports: {0}"),
+    
     "A881": QCoreApplication.translate(
         "AnnotationsChecker",
         "type annotation coverage of {0}% is too low"),
@@ -65,6 +69,7 @@
     "A001": ["arg1"],
     "A002": ["args"],
     "A003": ["kwargs"],
+    "A871": ["Dict, List"],
     "A881": [60],
     "A891": [5, 3],
     "A892": [10, 7],

eric ide

mercurial