Skip to content

Commit d8ef07d

Browse files
committed
Remove incorrect pragma: no cover from anthropic.py line 460
The else branch at line 460-462 is actually covered by tests for unsupported builtin tools, so the pragma: no cover is incorrect. This was a pre-existing issue inherited from main branch. Fixes strict-no-cover validation error.
1 parent 7d683b7 commit d8ef07d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydantic_ai_slim/pydantic_ai/models/anthropic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ def _add_builtin_tools(
457457
mcp_server_url_definition_param['authorization_token'] = tool.authorization_token
458458
mcp_servers.append(mcp_server_url_definition_param)
459459
beta_features.append('mcp-client-2025-04-04')
460-
else: # pragma: no cover
460+
else:
461461
raise UserError(
462462
f'`{tool.__class__.__name__}` is not supported by `AnthropicModel`. If it should be, please file an issue.'
463463
)

0 commit comments

Comments
 (0)