def expand_constraints(component, constraints):
    cns = []
    for cn in constraints:
        if isinstance(cn, ConstraintHelper):
            cns.extend(cn.create_constraints(component))
        elif cn is not None:
            cns.append(cn)
    return cns
A function which expands any ConstraintHelper in the list.
dataset/ETHPy150Open nucleic/enaml/enaml/layout/layout_helpers.py/expand_constraints