@classmethod
    def as_mutable(cls, sqltype):
        sqltype = types.to_instance(sqltype)

        def listen_for_type(mapper, class_):
            for prop in mapper.column_attrs:
                if prop.columns[0].type is sqltype:
                    cls.associate_with_attribute(getattr(class_, prop.key))

        event.listen(mapper, 'mapper_configured', listen_for_type)

        return sqltype
List of registered event listeners.
dataset/ETHPy150Open zzzeek/sqlalchemy/lib/sqlalchemy/ext/mutable.py/Mutable.as_mutable--crossover with--dataset/ETHPy150Open mongodb/mongo-python-driver/pymongo/monitoring.py/_EventListeners.event_listeners