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

branch
eric7
changeset 11148
15e30f0c76a8
parent 11147
dee6e106b4d3
child 11150
73d80859079c
equal deleted inserted replaced
11147:dee6e106b4d3 11148:15e30f0c76a8
386 if errorCode in ("A-001", "A-002", "A-003"): 386 if errorCode in ("A-001", "A-002", "A-003"):
387 self.__error(arg.lineno - 1, arg.col_offset, errorCode, arg.argname) 387 self.__error(arg.lineno - 1, arg.col_offset, errorCode, arg.argname)
388 else: 388 else:
389 self.__error(arg.lineno - 1, arg.col_offset, errorCode) 389 self.__error(arg.lineno - 1, arg.col_offset, errorCode)
390 390
391 @lru_cache() # __IGNORE_WARNING_M519__ 391 @lru_cache() # __IGNORE_WARNING_M-519__
392 def __returnErrorClassifier(self, isClassMethod, classDecoratorType, functionType): 392 def __returnErrorClassifier(self, isClassMethod, classDecoratorType, functionType):
393 """ 393 """
394 Private method to classify a return type annotation issue. 394 Private method to classify a return type annotation issue.
395 395
396 @param isClassMethod flag indicating a classmethod type function 396 @param isClassMethod flag indicating a classmethod type function
417 elif functionType == FunctionType.PROTECTED: 417 elif functionType == FunctionType.PROTECTED:
418 return "A-202" 418 return "A-202"
419 else: 419 else:
420 return "A-201" 420 return "A-201"
421 421
422 @lru_cache() # __IGNORE_WARNING_M519__ 422 @lru_cache() # __IGNORE_WARNING_M-519__
423 def __argumentErrorClassifier( 423 def __argumentErrorClassifier(
424 self, isClassMethod, isFirstArg, classDecoratorType, annotationType 424 self, isClassMethod, isFirstArg, classDecoratorType, annotationType
425 ): 425 ):
426 """ 426 """
427 Private method to classify an argument type annotation issue. 427 Private method to classify an argument type annotation issue.

eric ide

mercurial