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

branch
eric7
changeset 9274
86fab0c74430
parent 9221
bf71ee032bb4
child 9276
e6748a5e24b9
equal deleted inserted replaced
9273:5c6a9210d291 9274:86fab0c74430
179 ####################################################################### 179 #######################################################################
180 ## Annotations 180 ## Annotations
181 ## 181 ##
182 ## adapted from: flake8-annotations v2.7.0 182 ## adapted from: flake8-annotations v2.7.0
183 ####################################################################### 183 #######################################################################
184 # TODO: update to v2.9.0
184 185
185 def __checkFunctionAnnotations(self): 186 def __checkFunctionAnnotations(self):
186 """ 187 """
187 Private method to check for function annotation issues. 188 Private method to check for function annotation issues.
188 """ 189 """
418 ####################################################################### 419 #######################################################################
419 ## Annotations Coverage 420 ## Annotations Coverage
420 ## 421 ##
421 ## adapted from: flake8-annotations-coverage v0.0.5 422 ## adapted from: flake8-annotations-coverage v0.0.5
422 ####################################################################### 423 #######################################################################
424 # TODO: update to v0.0.6
423 425
424 def __checkAnnotationsCoverage(self): 426 def __checkAnnotationsCoverage(self):
425 """ 427 """
426 Private method to check for function annotation coverage. 428 Private method to check for function annotation coverage.
427 """ 429 """
486 ####################################################################### 488 #######################################################################
487 ## Annotations Complexity 489 ## Annotations Complexity
488 ## 490 ##
489 ## adapted from: flake8-annotations-complexity v0.0.6 491 ## adapted from: flake8-annotations-complexity v0.0.6
490 ####################################################################### 492 #######################################################################
493 # TODO: update to v0.0.7
491 494
492 def __checkAnnotationComplexity(self): 495 def __checkAnnotationComplexity(self):
493 """ 496 """
494 Private method to check the type annotation complexity. 497 Private method to check the type annotation complexity.
495 """ 498 """
599 ####################################################################### 602 #######################################################################
600 ## 'from __future__ import annotations' checck 603 ## 'from __future__ import annotations' checck
601 ## 604 ##
602 ## adapted from: flake8-future-annotations v0.0.4 605 ## adapted from: flake8-future-annotations v0.0.4
603 ####################################################################### 606 #######################################################################
607 # TODO: update to v0.0.5
604 608
605 def __checkAnnotationsFuture(self): 609 def __checkAnnotationsFuture(self):
606 """ 610 """
607 Private method to check the use of __future__ and typing imports. 611 Private method to check the use of __future__ and typing imports.
608 """ 612 """

eric ide

mercurial