Make sure that a Shape is selected
(obj: SketchVal)
| 63 | |
| 64 | |
| 65 | def _sanitize_for_bool(obj: SketchVal) -> Shape: |
| 66 | """ |
| 67 | Make sure that a Shape is selected |
| 68 | """ |
| 69 | |
| 70 | if isinstance(obj, Location): |
| 71 | raise ValueError("Location was provided, Shape is required.") |
| 72 | |
| 73 | return obj |
| 74 | |
| 75 | |
| 76 | def _to_compound(obj: Shape) -> Compound: |
no outgoing calls
no test coverage detected