

def remove(self, event_key):
    target = event_key.dispatch_target
    stack = [cls]
    while stack:
        cls = stack.pop(0)
        stack.extend(cls.__subclasses__())
        if (cls in self._clslevel):
            self._clslevel[cls].remove(event_key._listen_fn)
    registry._removed_from_collection(event_key, self)

dataset/ETHPy150Open zzzeek/sqlalchemy/lib/sqlalchemy/event/attr.py _ClsLevelDispatch.remove/VarMisuse@21/27 `target`->`cls`