mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-04 14:39:23 +00:00
style: ruff format
This commit is contained in:
@@ -137,7 +137,6 @@ def _parse_checkpoint_json(raw: str, source: str) -> dict[str, Any]:
|
||||
}
|
||||
|
||||
|
||||
|
||||
def _format_size(size: int) -> str:
|
||||
if size < 1024:
|
||||
return f"{size}B"
|
||||
|
||||
@@ -40,7 +40,6 @@ def _load_entries(location: str) -> list[dict[str, Any]]:
|
||||
return _list_json(location)
|
||||
|
||||
|
||||
|
||||
def _short_id(name: str) -> str:
|
||||
"""Shorten a checkpoint name for tree display."""
|
||||
if len(name) > 30:
|
||||
@@ -482,7 +481,9 @@ class CheckpointTUI(App[_TuiResult]):
|
||||
break
|
||||
for task_idx, editor_id in self._task_output_ids:
|
||||
editor = self.query_one(f"#{editor_id}", TextArea)
|
||||
original = str(tasks[task_idx].get("output", "")) if task_idx < len(tasks) else ""
|
||||
original = (
|
||||
str(tasks[task_idx].get("output", "")) if task_idx < len(tasks) else ""
|
||||
)
|
||||
if editor.text != original:
|
||||
overrides[task_idx] = editor.text
|
||||
return overrides or None
|
||||
|
||||
@@ -440,7 +440,9 @@ class Crew(FlowTrackable, BaseModel):
|
||||
if task.checkpoint_original_description is not None:
|
||||
task._original_description = task.checkpoint_original_description
|
||||
if task.checkpoint_original_expected_output is not None:
|
||||
task._original_expected_output = task.checkpoint_original_expected_output
|
||||
task._original_expected_output = (
|
||||
task.checkpoint_original_expected_output
|
||||
)
|
||||
if self.checkpoint_inputs is not None:
|
||||
self._inputs = self.checkpoint_inputs
|
||||
if self.checkpoint_kickoff_event_id is not None:
|
||||
|
||||
Reference in New Issue
Block a user