Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions libs/core/langchain_core/utils/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ def stringify_dict(data: dict) -> str:
Returns:
The stringified dictionary.
"""
text = ""
for key, value in data.items():
text += key + ": " + stringify_value(value) + "\n"
return text
return "".join(f"{key}: {stringify_value(value)}\n" for key, value in data.items())


def comma_list(items: list[Any]) -> str:
Expand Down