Skip to content

Commit

Permalink
fixed mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed Apr 12, 2024
1 parent 3e1f25d commit 872ad27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vision_agent/agent/vision_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ def chat_with_workflow(
if visualize_output:
visualized_output = all_tool_results[-1]["visualized_output"]
for image in visualized_output:
Image.open(image).show() # type: ignore
Image.open(image).show()

return final_answer, all_tool_results

Expand Down
2 changes: 1 addition & 1 deletion vision_agent/tools/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ class Calculator(Tool):
}

def __call__(self, equation: str) -> float:
return round(eval(equation), 2)
return cast(float, round(eval(equation), 2))


TOOLS = {
Expand Down

0 comments on commit 872ad27

Please sign in to comment.