Get and clear pending wires. :raises ValueError: if errorOnEmpty is True and no wires are present.
(self, errorOnEmpty: bool = True)
| 109 | return out |
| 110 | |
| 111 | def popPendingWires(self, errorOnEmpty: bool = True) -> List[Wire]: |
| 112 | """ |
| 113 | Get and clear pending wires. |
| 114 | |
| 115 | :raises ValueError: if errorOnEmpty is True and no wires are present. |
| 116 | """ |
| 117 | if errorOnEmpty and not self.pendingWires: |
| 118 | raise ValueError("No pending wires present") |
| 119 | out = self.pendingWires |
| 120 | self.pendingWires = [] |
| 121 | return out |
| 122 | |
| 123 | |
| 124 | class Workplane(object): |
no outgoing calls