diff -r ffd1f00ca376 -r 384e2aa5c073 eric6/Plugins/CheckerPlugins/CodeStyleChecker/AnnotationsChecker.py --- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/AnnotationsChecker.py Tue Jun 16 17:44:28 2020 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/AnnotationsChecker.py Tue Jun 16 17:45:12 2020 +0200 @@ -10,6 +10,8 @@ import sys import ast +import AstUtilities + class AnnotationsChecker(object): """ @@ -461,7 +463,7 @@ @return annotation complexity @rtype = int """ - if isinstance(annotationNode, ast.Str): + if AstUtilities.isString(annotationNode): annotationNode = ast.parse(annotationNode.s).body[0].value if isinstance(annotationNode, ast.Subscript): return 1 + getAnnotationComplexity(annotationNode.slice.value)