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
Returns a dict containing the final attributes of this element
dataset/ETHPy150Open openstack/horizon/horizon/utils/html.py/HTMLElement.get_final_attrs