Skip to content

Commit f26e942

Browse files
Ralph Agentclaude
andcommitted
✨ Add explanatory comment for deferred imports
Document why generate_banner and generate_logo are imported inside the function rather than at module scope. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent ee29587 commit f26e942

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

onboard.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ def _check_gemini_key() -> bool:
454454

455455
def _run_media_generation(choice: str, project_name: str, theme: str) -> list[str]:
456456
"""Run the selected media generation and return list of generated file paths."""
457+
# Import here to avoid requiring GEMINI_API_KEY for non-media commands
457458
from init.generate_banner import generate_banner as gen_banner
458459
from init.generate_logo import generate_logo as gen_logo
459460

0 commit comments

Comments
 (0)