def __iter__(self):
        """allows `dict(obj)` for situations where obj may be a dict or QuantizationConfigMixin"""
        for attr, value in copy.deepcopy(self.__dict__).items():
            yield attr, value
allows `dict(obj)` for situations where obj may be a dict or QuantizationConfigMixin
src/diffusers/quantizers/quantization_config.py