[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-07-01 23:57:51 +00:00
commit aa6d4ff5ef

View file

@ -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