adopt ruff as the replacement for python black (#332)

This commit is contained in:
Shuchang Zheng
2024-05-16 18:20:11 -07:00
committed by GitHub
parent 7a2be7e355
commit 2466897158
44 changed files with 1081 additions and 321 deletions

View File

@@ -53,7 +53,12 @@ class Step(BaseModel):
output_token_count: int = 0
step_cost: float = 0
def validate_update(self, status: StepStatus | None, output: AgentStepOutput | None, is_last: bool | None) -> None:
def validate_update(
self,
status: StepStatus | None,
output: AgentStepOutput | None,
is_last: bool | None,
) -> None:
old_status = self.status
if status and not old_status.can_update_to(status):