Skip to content

Commit f541bfb

Browse files
committed
coverage
1 parent 48ca22a commit f541bfb

File tree

1 file changed

+1
-1
lines changed
  • pydantic_ai_slim/pydantic_ai/ui/ag_ui

1 file changed

+1
-1
lines changed

pydantic_ai_slim/pydantic_ai/ui/ag_ui/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ async def run_agent(request: Request) -> Response:
125125
# `dispatch_request` will store the frontend state from the request on `deps.state` (if it implements the `StateHandler` protocol),
126126
# so we need to copy the deps to avoid different requests mutating the same deps object.
127127
nonlocal deps
128-
if isinstance(deps, StateHandler):
128+
if isinstance(deps, StateHandler): # pragma: no branch
129129
deps = replace(deps)
130130

131131
return await AGUIAdapter[AgentDepsT, OutputDataT].dispatch_request(

0 commit comments

Comments
 (0)