def _bytype(self, action_type, action_spec=None):
for action in reversed(self.bill['<STR_LIT>']):<EOL><INDENT>if action_type in action['<STR_LIT:type>']:<EOL><INDENT>for k, v in action_spec.items():<EOL><INDENT>if action[k] == v:<EOL><INDENT>yield action<EOL><DEDENT><DEDENT><DEDENT><DEDENT>
Return the most recent date on which action_type occurred.
        Action spec is a dictionary of key-value attrs to match.