'Returns a dict containing the final attributes to be rendered.'

def get_final_attrs(self, classes=True):

    final_attrs = copy.copy(self.get_default_attrs())
    final_attrs.update(self.attrs)
    if classes:
        final_attrs['class'] = self.get_final_css()
    else:
        final_attrs.pop('class', None)
    return final_attrs
