Updated ruff to the latest version (#31926)

* Updated ruff version and fixed the required code accorindg to the latest version.

* Updated ruff version and fixed the required code accorindg to the latest version.

* Added noqa directive to ignore 1 error shown by ruff
This commit is contained in:
Sai-Suraj-27
2024-07-23 20:37:31 +05:30
committed by GitHub
parent 9cf4f2aa9a
commit d2c687b3f1
14 changed files with 17 additions and 17 deletions

View File

@@ -198,7 +198,7 @@ Action:
)
agent.run("What is 2 multiplied by 3.6452?")
assert len(agent.logs) == 7
assert type(agent.logs[-1]["error"]) == AgentMaxIterationsError
assert type(agent.logs[-1]["error"]) is AgentMaxIterationsError
@require_torch
def test_init_agent_with_different_toolsets(self):