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:
Predrag Gruevski
2023-10-16 21:13:31 -04:00
committed by GitHub
parent c2c0814a94
commit 7c0f1bf23f
9 changed files with 1621 additions and 1389 deletions

View File

@@ -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: