pyboxbuilder.box.shell.with_no_lid_finger_holes

pyboxbuilder.box.shell.with_no_lid_finger_holes(spec: BoxSpec) → BoxSpec[source]

Return a no-lid spec with its default finger holes, unless it already has some.

Idempotent: an explicit finger_hole(side) call on the builder wins, and a second call to this changes nothing. A spec that sets auto_finger_holes to False opts out entirely (FR-047b).

A compartmented tray (hollow=False) is skipped: its outer rim is backed by inner gutter walls and compartment dividers, so an edge dip only one wall_thickness deep forms a blind pocket in the side wall instead of opening into a well (use per-compartment cut=FingerCut.SCOOP where side access is wanted).

A polygon footprint gets none either (FR-047c). The rule names four walls and a longer side, and a polygon has neither — no_lid_finger_holes would read the bounding box and cut into a wall that need not exist. The test is the footprint rather than the box type, because that is what the rule is actually about; an explicit finger_hole(side) still works, since the caller can see the outline.

Parameters:
spec: BoxSpec

The box’s resolved description.

Returns:

The spec, or a copy carrying the automatic pair.