import cadquery as Cq def mystery(): return ( Cq.Workplane() .box(1, 1, 1) .tag("base") .wires(">Z") .toPending() .translate((0.1, 0.1, 1.0)) .toPending() .loft() .faces(">>X", tag="base") .workplane(centerOption="CenterOfMass") .circle(0.2) .extrude(3) )