

def unregister(self, vote_model, content_models, Provider):
    provider_instance = Provider()
    for signal in provider_instance.rate_signals:
        if isinstance(signal, str):
            sig_class_name = signal.split('.')[(- 1)]
            sig_instance = import_from_classname(signal)
            listener = getattr(provider_instance, sig_class_name, False)
            if model:
                for model in content_models:
                    sig_instance.disconnect(listener, sender=model)
    new_set = [i for i in self.providers if (not isinstance(i, Provider))]
    self.providers = set(new_set)
    for model in content_models:
        del self._content_providers[model_path(model)]
    del self._vote_providers[model_path(vote_model)]

dataset/ETHPy150Open fcurella/django-recommends/recommends/providers/__init__.py RecommendationProviderRegistry.unregister/VarMisuse@75/104 `listener`->`model`