def checkboxes(contents, designator, errs):
    if designator == "IC":
        boxes = re_poly.findall(contents)
        if "f" not in boxes:
            errs.append("No background-filled box/poly found, but part is IC")
dataset/ETHPy150Open adamgreig/agg-kicad/scripts/check_lib.py/checkboxes/original