(caption: dict[str, Any], plan_item: dict[str, Any], status: str)
| 133 | |
| 134 | |
| 135 | def should_insert(caption: dict[str, Any], plan_item: dict[str, Any], status: str) -> bool: |
| 136 | if status != "usable_candidate": |
| 137 | return False |
| 138 | if caption.get("kind") not in INSERTABLE_KINDS: |
| 139 | return False |
| 140 | return bool(source_image_path(plan_item)) |
| 141 | |
| 142 | |
| 143 | def decide(caption: dict[str, Any], plan_item: dict[str, Any] | None) -> dict[str, Any]: |
no test coverage detected