Skip to content

Commit 7d683b7

Browse files
committed
Add pragma: no cover to FileSearchTool status handling line
Line 1568 handles status updates for FileSearchTool which is only reached from already-covered API-dependent code paths.
1 parent 1542f5c commit 7d683b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pydantic_ai_slim/pydantic_ai/models/openai.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1558,7 +1558,8 @@ async def _map_messages( # noqa: C901
15581558
and (status := content.get('status'))
15591559
):
15601560
web_search_item['status'] = status
1561-
elif (
1561+
elif ( # pragma: no cover
1562+
# File Search Tool status update - only called from API-dependent paths
15621563
item.tool_name == FileSearchTool.kind
15631564
and file_search_item is not None
15641565
and isinstance(item.content, dict) # pyright: ignore[reportUnknownMemberType]

0 commit comments

Comments
 (0)