Skip to content

Commit 11df1e8

Browse files
google-genai-botcopybara-github
authored andcommitted
fix: Change pass to yield in BaseLlmConnection.receive
PiperOrigin-RevId: 835268090
1 parent 59eba96 commit 11df1e8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/google/adk/models/base_llm_connection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ async def receive(self) -> AsyncGenerator[LlmResponse, None]:
7272
Yields:
7373
LlmResponse: The model response.
7474
"""
75-
pass
75+
# We need to yield here to help type checkers infer the correct type.
76+
yield
7677

7778
@abstractmethod
7879
async def close(self):

0 commit comments

Comments
 (0)