mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-24 20:09:01 +00:00
Upgrade experimental package dependencies and use Poetry 1.6.1. (#11339)
Part of upgrading our CI to use Poetry 1.6.1.
This commit is contained in:
@@ -154,7 +154,13 @@ class PALChain(Chain):
|
||||
)
|
||||
_run_manager.on_text(code, color="green", end="\n", verbose=self.verbose)
|
||||
PALChain.validate_code(code, self.code_validations)
|
||||
repl = PythonREPL(_globals=self.python_globals, _locals=self.python_locals)
|
||||
|
||||
# TODO: look into why mypy thinks PythonREPL's type here is `Any`
|
||||
# and therefore not callable
|
||||
repl = PythonREPL(
|
||||
_globals=self.python_globals,
|
||||
_locals=self.python_locals,
|
||||
) # type: ignore[misc]
|
||||
res = repl.run(code + f"\n{self.get_answer_expr}", timeout=self.timeout)
|
||||
output = {self.output_key: res.strip()}
|
||||
if self.return_intermediate_steps:
|
||||
|
Reference in New Issue
Block a user