Skip to content

Commit c6a47db

Browse files
committed
Update return type of generate_ad_image method
1 parent 0cdfa99 commit c6a47db

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/apps/ad-use/ad_generator.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import sys
77
from datetime import datetime
88
from pathlib import Path
9-
from typing import Optional
109

1110

1211
def setup_environment(debug: bool):
@@ -128,7 +127,7 @@ def create_ad_prompt(self, browser_analysis: str) -> str:
128127
Style: Modern Instagram advertisement, (1:1), scroll-stopping, professional but playful, conversion-focused"""
129128
return prompt
130129

131-
async def generate_ad_image(self, prompt: str, screenshot_path: Path | None = None) -> Optional[bytes]:
130+
async def generate_ad_image(self, prompt: str, screenshot_path: Path | None = None) -> bytes | None:
132131
"""Generate ad image bytes using Gemini. Returns None on failure."""
133132

134133
try:

0 commit comments

Comments
 (0)