Skip to content

Commit a471089

Browse files
committed
chore(ag-ui): more pragma no branch comments
Add a few more pragma no branch comments to help fix coverage report for pass on only branches.
1 parent 61199a2 commit a471089

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adapter_ag_ui/adapter_ag_ui/adapter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ async def _handle_agent_event(
460460
delta=agent_event.part.content,
461461
),
462462
)
463-
case ToolCallPart():
463+
case ToolCallPart(): # pragma: no branch
464464
tool_name: str | None = tool_names.get(agent_event.part.tool_name)
465465
if not tool_name:
466466
stream_ctx.local_tool_calls.add(agent_event.part.tool_call_id)
@@ -496,7 +496,7 @@ async def _handle_agent_event(
496496
delta=agent_event.delta.content_delta,
497497
),
498498
)
499-
case ToolCallPartDelta():
499+
case ToolCallPartDelta(): # pragma: no branch
500500
if agent_event.delta.tool_call_id in stream_ctx.local_tool_calls:
501501
# Local tool calls are not sent to the UI.
502502
return

0 commit comments

Comments
 (0)