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. |