fix: correct type error in error message formatting

Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
Devin AI
2025-02-20 17:04:35 +00:00
parent 6a59194e6f
commit 5b833d932e

View File

@@ -239,7 +239,7 @@ class Task(BaseModel):
if not is_valid:
raise GuardrailValidationError(
f"Invalid return type annotation. Expected one of: "
f"{', '.join(VALID_RETURN_TYPES.keys())}",
f"{', '.join(VALID_RETURN_TYPES)}",
{"got": annotation_str}
)
return v