Skip to content

Commit 8015d97

Browse files
committed
Fix mypy type annotation in list initialization
1 parent 98eec5b commit 8015d97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/agent/runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ async def _run_agent_loop(
186186
async def _process_event(self, event: Any) -> list[OutboundFrame]:
187187
"""Process an ADK event and convert to OutboundFrame(s) if applicable."""
188188

189-
frames = []
189+
frames: list[OutboundFrame] = []
190190
if event.interrupted:
191191
frames.append(
192192
OutboundFrame(
@@ -226,7 +226,7 @@ async def _process_event(self, event: Any) -> list[OutboundFrame]:
226226

227227
async def _process_content(self, content: types.Content) -> list[OutboundFrame]:
228228
"""Process Content from an event, extracting audio/text."""
229-
frames = []
229+
frames: list[OutboundFrame] = []
230230
if not content.parts:
231231
return frames
232232

0 commit comments

Comments
 (0)