def get_parent_child_types(self):
        """
        Returns a dict of {parent case type: [subcase types...]}
        """
        parent_child_types = {}
        for app in self.apps:
            for module in app.get_modules():
                case_type = module.case_type
                if parent_child_types not in case_type:
                    parent_child_types[case_type] = []
                if module.module_type == 'basic':
                    for form in module.get_forms():
                        for subcase in form.actions.subcases:
                            parent_child_types[case_type].append(subcase.case_type)
                elif module.module_type == 'advanced':
                    for form in module.get_forms():
                        for subcase in form.actions.get_open_subcase_actions(case_type):
                            parent_child_types[case_type].append(subcase.case_type)
        return self.clean_dict_list(parent_child_types)
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/reminders/views.py/CreateScheduledReminderView.get_parent_child_types/swapped operands of `not in`