#NEWLINE# @ classmethod #NEWLINE# @ lru_cache ( maxsize = None ) #NEWLINE# def can_lint( cls , syntax ) : #NEWLINE# #INDENT# "\n        Determine if the linter can handle the provided syntax.\n\n        This is an optimistic determination based on the linter's syntax alone.\n        " #NEWLINE# can = False #NEWLINE# syntax = syntax . lower ( ) #NEWLINE# if cls . syntax : #NEWLINE# #INDENT# if isinstance ( cls . syntax , ( tuple , list ) ) : #NEWLINE# #INDENT# can = ( syntax in cls . syntax ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( cls . syntax == '*' ) : #NEWLINE# #INDENT# can = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( cls . syntax , str ) : #NEWLINE# #INDENT# can = ( syntax == cls . syntax ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# can = ( cls . syntax . match ( syntax ) is not None ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return can