Skip to content

Commit 8f6f9f1

Browse files
committed
fix: update return type annotation for run_async method in GoogleGenAITextEmbedder
1 parent 4909c01 commit 8f6f9f1

File tree

1 file changed

+1
-1
lines changed
  • integrations/google_genai/src/haystack_integrations/components/embedders/google_genai

1 file changed

+1
-1
lines changed

integrations/google_genai/src/haystack_integrations/components/embedders/google_genai/text_embedder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def run(self, text: str) -> Union[Dict[str, List[float]], Dict[str, Any]]:
140140
return self._prepare_output(result=response)
141141

142142
@component.output_types(embedding=List[float], meta=Dict[str, Any])
143-
async def run_async(self, text: str):
143+
async def run_async(self, text: str) -> Union[Dict[str, List[float]], Dict[str, Any]]:
144144
"""
145145
Asynchronously embed a single string.
146146

0 commit comments

Comments
 (0)