style: apply ruff formatting to crew.py and task.py

Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
Devin AI
2026-03-27 08:44:16 +00:00
parent d0793e5ec3
commit 69bc5819c1
2 changed files with 12 additions and 2 deletions

View File

@@ -1340,7 +1340,12 @@ class Crew(FlowTrackable, BaseModel):
# Text files are always auto-injected (inlined as text), even
# when the model does not support multimodal input.
text_prefixes = ("text/", "application/json", "application/xml", "application/x-yaml")
text_prefixes = (
"text/",
"application/json",
"application/xml",
"application/x-yaml",
)
def is_auto_injected(content_type: str) -> bool:
if any(content_type.startswith(t) for t in text_prefixes):

View File

@@ -826,7 +826,12 @@ class Task(BaseModel):
# Text files are always auto-injected (inlined as text), even
# when the model does not support multimodal input.
text_prefixes = ("text/", "application/json", "application/xml", "application/x-yaml")
text_prefixes = (
"text/",
"application/json",
"application/xml",
"application/x-yaml",
)
def is_auto_injected(content_type: str) -> bool:
if any(content_type.startswith(t) for t in text_prefixes):