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

branch
eric7
changeset 10058
5d965939ab85
parent 10046
35b27af462ef
child 10086
c8854a6300d1
diff -r 1e31ca1078ab -r 5d965939ab85 src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/translations.py
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/translations.py	Tue May 23 14:39:14 2023 +0200
+++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/translations.py	Tue May 23 15:58:50 2023 +0200
@@ -45,14 +45,13 @@
     "A206": QCoreApplication.translate(
         "AnnotationsChecker", "missing return type annotation for classmethod"
     ),
-    "A301": QCoreApplication.translate(
-        "AnnotationsChecker",
-        "PEP 484 disallows both type annotations and type comments",
-    ),
     "A401": QCoreApplication.translate(
         "AnnotationsChecker",
         "Dynamically typed expressions (typing.Any) are disallowed",
     ),
+    "A402": QCoreApplication.translate(
+        "AnnotationsChecker", "Type comments are disallowed"
+    ),
     "A871": QCoreApplication.translate(
         "AnnotationsChecker",
         "missing 'from __future__ import annotations' but imports: {0}",

eric ide

mercurial