eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py

changeset 8244
ed8cb108b27b
parent 8243
cc717c2ae956
child 8259
2bbec88047dd
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py	Thu Apr 15 18:11:24 2021 +0200
+++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py	Fri Apr 16 18:03:43 2021 +0200
@@ -424,8 +424,9 @@
             errors += complexityChecker.errors
             
             # check function annotations
-            if sys.version_info >= (3, 5, 0):
-                # annotations are supported from Python 3.5 on
+            if sys.version_info >= (3, 8, 0):
+                # annotations with type comments are supported from
+                # Python 3.8 on
                 from Annotations.AnnotationsChecker import AnnotationsChecker
                 annotationsChecker = AnnotationsChecker(
                     source, filename, tree, select, ignore, [], repeatMessages,

eric ide

mercurial