def flatten(self):
        models = []
        _, targets = self.get_data()
        for t in targets:
            if isinstance(t, ObjectModel):
                models += [t]
            elif isinstance(t, TargetingCriterion):
                models += t.flatten()

        return models
Return flattened list of all targeting
dataset/ETHPy150Open chartbeat-labs/parselmouth/parselmouth/targeting.py/TargetingCriterion.flatten