367 if errorCode in ("A001", "A002", "A003"): |
367 if errorCode in ("A001", "A002", "A003"): |
368 self.__error(arg.lineno - 1, arg.col_offset, errorCode, arg.argname) |
368 self.__error(arg.lineno - 1, arg.col_offset, errorCode, arg.argname) |
369 else: |
369 else: |
370 self.__error(arg.lineno - 1, arg.col_offset, errorCode) |
370 self.__error(arg.lineno - 1, arg.col_offset, errorCode) |
371 |
371 |
372 @lru_cache() |
372 @lru_cache() # __IGNORE_WARNING_M519__ |
373 def __returnErrorClassifier(self, isClassMethod, classDecoratorType, functionType): |
373 def __returnErrorClassifier(self, isClassMethod, classDecoratorType, functionType): |
374 """ |
374 """ |
375 Private method to classify a return type annotation issue. |
375 Private method to classify a return type annotation issue. |
376 |
376 |
377 @param isClassMethod flag indicating a classmethod type function |
377 @param isClassMethod flag indicating a classmethod type function |
398 elif functionType == FunctionType.PROTECTED: |
398 elif functionType == FunctionType.PROTECTED: |
399 return "A202" |
399 return "A202" |
400 else: |
400 else: |
401 return "A201" |
401 return "A201" |
402 |
402 |
403 @lru_cache() |
403 @lru_cache() # __IGNORE_WARNING_M519__ |
404 def __argumentErrorClassifier( |
404 def __argumentErrorClassifier( |
405 self, isClassMethod, isFirstArg, classDecoratorType, annotationType |
405 self, isClassMethod, isFirstArg, classDecoratorType, annotationType |
406 ): |
406 ): |
407 """ |
407 """ |
408 Private method to classify an argument type annotation issue. |
408 Private method to classify an argument type annotation issue. |