From 7fcd6db48a2e063cae403b16d492f0819ec7ada8 Mon Sep 17 00:00:00 2001 From: Devin Date: Mon, 20 Apr 2026 10:21:08 +0000 Subject: [PATCH] style: ruff format --- lib/crewai/src/crewai/task.py | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/lib/crewai/src/crewai/task.py b/lib/crewai/src/crewai/task.py index ab808e98a..ed9ee415e 100644 --- a/lib/crewai/src/crewai/task.py +++ b/lib/crewai/src/crewai/task.py @@ -197,9 +197,7 @@ class Task(BaseModel): output_json: Annotated[ type[BaseModel] | None, BeforeValidator(_validate_class_ref), - PlainSerializer( - _serialize_class_ref, return_type=str | None, when_used="json" - ), + PlainSerializer(_serialize_class_ref, return_type=str | None, when_used="json"), ] = Field( description="A Pydantic model to be used to create a JSON output.", default=None, @@ -207,9 +205,7 @@ class Task(BaseModel): output_pydantic: Annotated[ type[BaseModel] | None, BeforeValidator(_validate_class_ref), - PlainSerializer( - _serialize_class_ref, return_type=str | None, when_used="json" - ), + PlainSerializer(_serialize_class_ref, return_type=str | None, when_used="json"), ] = Field( description="A Pydantic model to be used to create a Pydantic output.", default=None, @@ -217,9 +213,7 @@ class Task(BaseModel): response_model: Annotated[ type[BaseModel] | None, BeforeValidator(_validate_class_ref), - PlainSerializer( - _serialize_class_ref, return_type=str | None, when_used="json" - ), + PlainSerializer(_serialize_class_ref, return_type=str | None, when_used="json"), ] = Field( description="A Pydantic model for structured LLM outputs using native provider features.", default=None, @@ -263,9 +257,7 @@ class Task(BaseModel): converter_cls: Annotated[ type[Converter] | None, BeforeValidator(_validate_class_ref), - PlainSerializer( - _serialize_class_ref, return_type=str | None, when_used="json" - ), + PlainSerializer(_serialize_class_ref, return_type=str | None, when_used="json"), ] = Field( description="A converter class used to export structured output", default=None,