#NEWLINE# @ classmethod #NEWLINE# def tag_rule( cls , tag , filter = Filter . null ) : #NEWLINE# #INDENT# @ Generator #NEWLINE# def generator( entry ) : #NEWLINE# #INDENT# return entry . account . get_tag ( tag ) ( entry ) #NEWLINE# #UNINDENT# return Rule ( ( cls . tag_filter ( tag ) & filter ) , generator )