Skip to content

Commit 8e4b4a9

Browse files
committed
lint
1 parent 08b6698 commit 8e4b4a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ddtrace/llmobs/_integrations/langchain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def _get_popped_span_link_indecies(
319319
This is a temporary stopgap until we trace virtually every step in the chain, and we know the last
320320
step will be the last one traced.
321321
"""
322-
pop_indecies = []
322+
pop_indecies: List[int] = []
323323
parent_instance = self._instances.get(parent_span)
324324
if not parent_instance:
325325
return pop_indecies
@@ -455,7 +455,7 @@ def _llmobs_set_tags_from_chat_model(
455455
content = (
456456
message.get("content", "") if isinstance(message, dict) else getattr(message, "content", "")
457457
)
458-
role = getattr(message, "role", ROLE_MAPPING.get(getattr(message, "type", None), ""))
458+
role = getattr(message, "role", ROLE_MAPPING.get(getattr(message, "type", ""), ""))
459459
input_messages.append({"content": str(content), "role": str(role)})
460460
span._set_ctx_item(input_tag_key, input_messages)
461461

0 commit comments

Comments
 (0)