From 67dfd3a2bb92fba2b80af6425038e7091349dc35 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 2 Jul 2026 00:00:01 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- studio/backend/core/training/diffusion_training_service.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/studio/backend/core/training/diffusion_training_service.py b/studio/backend/core/training/diffusion_training_service.py index 091f7b881c..92621931f7 100644 --- a/studio/backend/core/training/diffusion_training_service.py +++ b/studio/backend/core/training/diffusion_training_service.py @@ -193,7 +193,11 @@ class DiffusionTrainingService: if ev.get("type") in _TERMINAL: return - def _apply_event(self, ev: dict[str, Any], proc: Any = None) -> None: + def _apply_event( + self, + ev: dict[str, Any], + proc: Any = None, + ) -> None: """Fold one trainer event into the status snapshot. Pure state update -- unit tested by feeding events directly. ``proc`` (when given) fences a stale pump: an event from a superseded job's process must not touch the current job's