Skip to content

Commit 09d51bc

Browse files
add comment about guaranteed streaming state
1 parent 1bc5f86 commit 09d51bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sentry_sdk/integrations/anthropic.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ class _StreamSpanContext:
9898
def __init__(
9999
self,
100100
stream: "Union[Stream, MessageStream, AsyncStream, AsyncMessageStream]",
101+
# Flag to avoid unreachable branches when the stream state is known to be initialized (stream._model, etc. are set).
101102
guaranteed_streaming_state: bool = False,
102103
) -> None:
103104
self._stream = stream

0 commit comments

Comments
 (0)