From 698fa0a2e6b61c00babc1632afa2ce14c49b8546 Mon Sep 17 00:00:00 2001 From: Ivana Kellyer Date: Thu, 12 Nov 2026 11:01:59 +0100 Subject: [PATCH] fix: Random formatting, comment fixes --- MIGRATION_GUIDE.md | 10 +++++++--- sentry_sdk/integrations/aiomysql.py | 1 - .../integrations/pydantic_ai/spans/invoke_agent.py | 3 --- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/MIGRATION_GUIDE.md b/MIGRATION_GUIDE.md index 461e325357..486f31da8f 100644 --- a/MIGRATION_GUIDE.md +++ b/MIGRATION_GUIDE.md @@ -332,12 +332,16 @@ sentry_sdk.init( "http_headers": { "request": { "mode": "denylist", - "terms": ["forwarded", "-ip", "remote-", "via", "-user"] + "terms": ["forwarded", "-ip", "remote-", "via", "-user"], }, }, - "cookies": { "mode": "denylist", "terms": ["forwarded", "-ip", "remote-", "via", "-user"] }, + "cookies": { + "mode": "denylist", + "terms": ["forwarded", "-ip", "remote-", "via", "-user"], + }, "url_query_params": { - "mode": "denylist", "terms": ["forwarded", "-ip", "remote-", "via", "-user"], + "mode": "denylist", + "terms": ["forwarded", "-ip", "remote-", "via", "-user"], }, }, ) diff --git a/sentry_sdk/integrations/aiomysql.py b/sentry_sdk/integrations/aiomysql.py index 2cf18e1f44..4973a0488b 100644 --- a/sentry_sdk/integrations/aiomysql.py +++ b/sentry_sdk/integrations/aiomysql.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from __future__ import annotations from typing import Any, Awaitable, Callable, TypeVar diff --git a/sentry_sdk/integrations/pydantic_ai/spans/invoke_agent.py b/sentry_sdk/integrations/pydantic_ai/spans/invoke_agent.py index 4fe07ac352..c197966000 100644 --- a/sentry_sdk/integrations/pydantic_ai/spans/invoke_agent.py +++ b/sentry_sdk/integrations/pydantic_ai/spans/invoke_agent.py @@ -63,7 +63,6 @@ def invoke_agent_span( system_texts = [] if agent: - # Check for system_prompt system_prompts = getattr(agent, "_system_prompts", None) or [] for prompt in system_prompts: if isinstance(prompt, str): @@ -101,7 +100,6 @@ def invoke_agent_span( } ) elif isinstance(user_prompt, list): - # Handle list of user content content = [] for item in user_prompt: if isinstance(item, str): @@ -138,7 +136,6 @@ def update_invoke_agent_span( if not span or not result: return - # Extract output from result output = getattr(result, "output", None) # Set response text if prompts are enabled