[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-05-25 15:11:32 +00:00
commit 91e3a281d8

View file

@ -808,6 +808,7 @@ class DiffusionBackend:
# execution) so test environments that stub these modules
# still pass the preflight without us actually importing them.
import importlib.util as _ilu
for _mod in ("transformers", "accelerate"):
if _ilu.find_spec(_mod) is None:
raise RuntimeError(