chore(core): fix some ruff preview rules (#32785)

Co-authored-by: Mason Daugherty <mason@langchain.dev>
This commit is contained in:
Christophe Bornet
2025-09-08 17:55:20 +02:00
committed by GitHub
parent f4e83e0ad8
commit 01fdeede50
33 changed files with 172 additions and 120 deletions

View File

@@ -210,7 +210,7 @@ class BasePromptTemplate(
if self.metadata:
config["metadata"] = {**config["metadata"], **self.metadata}
if self.tags:
config["tags"] = config["tags"] + self.tags
config["tags"] += self.tags
return self._call_with_config(
self._format_prompt_with_error_handling,
input,

View File

@@ -166,7 +166,7 @@ def mustache_schema(
prefix = section_stack.pop()
elif type_ in {"section", "inverted section"}:
section_stack.append(prefix)
prefix = prefix + tuple(key.split("."))
prefix += tuple(key.split("."))
fields[prefix] = False
elif type_ in {"variable", "no escape"}:
fields[prefix + tuple(key.split("."))] = True