def _update_from()

in src/simplify_docx/elements/form.py [0:0]


def _update_from(x: Dict[str, Any], y: Dict[str, Any], attrs: Sequence[str]) -> None:
    """
    A utility function for copying attributes from one object to another
    """
    for attr in attrs:
        val = y.get(attr, None)
        if val is not None:
            x[attr] = get_val(val)