diff -r cc717c2ae956 -r ed8cb108b27b eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py --- 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,