From 1d37aa840364c32d88beff19d98f7f41056f86c3 Mon Sep 17 00:00:00 2001 From: Nuno Campos Date: Thu, 11 Jul 2024 16:55:36 -0700 Subject: [PATCH] core: Remove extra newline (#24157) --- libs/core/langchain_core/runnables/graph_mermaid.py | 2 +- .../tests/unit_tests/runnables/__snapshots__/test_graph.ambr | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/libs/core/langchain_core/runnables/graph_mermaid.py b/libs/core/langchain_core/runnables/graph_mermaid.py index 877cb109303..18988d68a2b 100644 --- a/libs/core/langchain_core/runnables/graph_mermaid.py +++ b/libs/core/langchain_core/runnables/graph_mermaid.py @@ -60,7 +60,7 @@ def draw_mermaid( label = node.name.split(":")[-1] if node.metadata: label = ( - f"{label}
\n" + f"{label}
" + "\n".join( f"{key} = {value}" for key, value in node.metadata.items() ) diff --git a/libs/core/tests/unit_tests/runnables/__snapshots__/test_graph.ambr b/libs/core/tests/unit_tests/runnables/__snapshots__/test_graph.ambr index 1d097ae4fda..6ec737beba4 100644 --- a/libs/core/tests/unit_tests/runnables/__snapshots__/test_graph.ambr +++ b/libs/core/tests/unit_tests/runnables/__snapshots__/test_graph.ambr @@ -36,8 +36,7 @@ graph TD; PromptInput([PromptInput]):::first PromptTemplate(PromptTemplate) - FakeListLLM(FakeListLLM
- key = 2) + FakeListLLM(FakeListLLM
key = 2) CommaSeparatedListOutputParser(CommaSeparatedListOutputParser) CommaSeparatedListOutputParserOutput([CommaSeparatedListOutputParserOutput]):::last PromptInput --> PromptTemplate;