422 complexityChecker.run() |
422 complexityChecker.run() |
423 stats.update(complexityChecker.counters) |
423 stats.update(complexityChecker.counters) |
424 errors += complexityChecker.errors |
424 errors += complexityChecker.errors |
425 |
425 |
426 # check function annotations |
426 # check function annotations |
427 if sys.version_info >= (3, 5, 0): |
427 if sys.version_info >= (3, 8, 0): |
428 # annotations are supported from Python 3.5 on |
428 # annotations with type comments are supported from |
|
429 # Python 3.8 on |
429 from Annotations.AnnotationsChecker import AnnotationsChecker |
430 from Annotations.AnnotationsChecker import AnnotationsChecker |
430 annotationsChecker = AnnotationsChecker( |
431 annotationsChecker = AnnotationsChecker( |
431 source, filename, tree, select, ignore, [], repeatMessages, |
432 source, filename, tree, select, ignore, [], repeatMessages, |
432 annotationArgs) |
433 annotationArgs) |
433 annotationsChecker.run() |
434 annotationsChecker.run() |