From bee10cc55a89feeccb517039654c1ebc9cbb2a2b Mon Sep 17 00:00:00 2001 From: Ikko Eltociear Ashimine Date: Sat, 4 Jan 2025 23:41:52 +0900 Subject: [PATCH] chore: update local_python_executor.py Assignement -> Assignment --- src/smolagents/local_python_executor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/smolagents/local_python_executor.py b/src/smolagents/local_python_executor.py index 3cb04c0..1464067 100644 --- a/src/smolagents/local_python_executor.py +++ b/src/smolagents/local_python_executor.py @@ -829,7 +829,7 @@ def evaluate_ast( The code to evaluate, as an abstract syntax tree. state (`Dict[str, Any]`): A dictionary mapping variable names to values. The `state` is updated if need be when the evaluation - encounters assignements. + encounters assignments. static_tools (`Dict[str, Callable]`): Functions that may be called during the evaluation. Trying to change one of these static_tools will raise an error. custom_tools (`Dict[str, Callable]`): @@ -845,7 +845,7 @@ def evaluate_ast( ) OPERATIONS_COUNT += 1 if isinstance(expression, ast.Assign): - # Assignement -> we evaluate the assignment which should update the state + # Assignment -> we evaluate the assignment which should update the state # We return the variable assigned as it may be used to determine the final result. return evaluate_assign(expression, state, static_tools, custom_tools) elif isinstance(expression, ast.AugAssign):