mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-25 04:49:17 +00:00
chore(core): fix some ruff preview rules (#32785)
Co-authored-by: Mason Daugherty <mason@langchain.dev>
This commit is contained in:
committed by
GitHub
parent
f4e83e0ad8
commit
01fdeede50
@@ -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,
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user