def build_attrs(self, extra_attrs=None, **kwargs):
        attrs = dict(self.attrs, **kwargs)
        if extra_attrs:
            attrs.update(extra_attrs)
        return attrs
Helper function for building an attribute dictionary.
dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/forms/widgets.py/Widget.build_attrs