def top_pth_fab(pins):
    out = []

    # Draw outline
    _, _, _, _, sq = draw_square(2*(1-pins)+4, 5.3, (0, 0), "F.Fab", fab_width)
    out += sq

    # Draw side leg
    x = pins - 1 + 1.5
    _, _, _, _, sq = draw_square(.8, .8, (x, -1.7), "F.Fab", fab_width)
    out += sq

    # Draw pins
    x = pins - 1
    for pin in range(pins):
        _, _, _, _, sq = draw_square(.5, .5, (x, 0), "F.Fab", fab_width)
        out += sq
        x -= 2

    return out
dataset/ETHPy150Open adamgreig/agg-kicad/scripts/build_mod_jstpa.py/top_pth_fab/swapped operands of `-`