def _add_rule(self, rule, rule_type):
        if rule is not None and rule not in self.rules_set:
            self.rules_set.add_rule(rule, rule_type)
Add the given rule to the internal rules set.
dataset/ETHPy150Open enthought/depsolver/depsolver/solver/rules_generator.py/RulesGenerator._add_rule