Skip to content

Commit 3bc6734

Browse files
Merge branch 'webb/anthropic/streaming-reasoning' of github.com:getsentry/sentry-python into webb/anthropic/streaming-reasoning
# Conflicts: # sentry_sdk/integrations/anthropic.py
2 parents 08af830 + 510b381 commit 3bc6734

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎sentry_sdk/integrations/anthropic.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
except ImportError:
7070
ThinkingBlock = None # type: ignore[assignment,misc]
7171

72-
7372
if TYPE_CHECKING:
7473
from typing import (
7574
Any,
@@ -390,7 +389,7 @@ def _collect_ai_data(
390389
elif event.type == "content_block_delta" and content_blocks:
391390
block = content_blocks[-1]
392391
if block["type"] == "thinking":
393-
block["thinking"] += event.delta.thinking
392+
block["thinking"] += event.delta.thinking # type: ignore[union-attr]
394393
else:
395394
chunk = getattr(event.delta, "text", None) or getattr(
396395
event.delta, "partial_json", None

0 commit comments

Comments
 (0)