From df00876f7ab0893409fd6940d6be5272f0a384af Mon Sep 17 00:00:00 2001 From: theCyberTech <84775494+theCyberTech@users.noreply.github.com> Date: Sun, 5 Jan 2025 11:35:58 +0800 Subject: [PATCH] Linting: - Improved code formatting for better clarity. - These changes aim to improve maintainability and clarity of the code. --- src/crewai/tools/tool_usage.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/crewai/tools/tool_usage.py b/src/crewai/tools/tool_usage.py index e0b7abd76..5230566aa 100644 --- a/src/crewai/tools/tool_usage.py +++ b/src/crewai/tools/tool_usage.py @@ -180,7 +180,9 @@ class ToolUsage: if calling.arguments: try: - acceptable_args = tool.args_schema.model_json_schema()["properties"].keys() # type: ignore # Item "None" of "type[BaseModel] | None" has no attribute "schema" + acceptable_args = tool.args_schema.model_json_schema()[ + "properties" + ].keys() # type: ignore # Item "None" of "type[BaseModel] | None" has no attribute "schema" arguments = { k: v for k, v in calling.arguments.items()