Skip to content

Commit ad4b3c2

Browse files
add docstring explaining type alises
1 parent 2d66d56 commit ad4b3c2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sentry_sdk/integrations/anthropic.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,8 @@ def _wrap_synchronous_message_iterator(
372372
response_id = None
373373

374374
for event in iterator:
375+
# Message and content types are aliases for corresponding Raw* types, introduced in
376+
# https://github.com/anthropics/anthropic-sdk-python/commit/bc9d11cd2addec6976c46db10b7c89a8c276101a
375377
if not isinstance(
376378
event,
377379
(
@@ -437,6 +439,8 @@ async def _wrap_asynchronous_message_iterator(
437439
response_id = None
438440

439441
async for event in iterator:
442+
# Message and content types are aliases for corresponding Raw* types, introduced in
443+
# https://github.com/anthropics/anthropic-sdk-python/commit/bc9d11cd2addec6976c46db10b7c89a8c276101a
440444
if not isinstance(
441445
event,
442446
(

0 commit comments

Comments
 (0)