[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-05 02:07:45 +00:00
commit f6f198fd5f
2 changed files with 2 additions and 6 deletions

View file

@ -698,9 +698,7 @@ class SdCppDiffusionBackend:
loading = self._loading
if loading is None or loading.error is not None:
return ()
return tuple(
r for r in (loading.repo_id, loading.base_repo, *loading.asset_repos) if r
)
return tuple(r for r in (loading.repo_id, loading.base_repo, *loading.asset_repos) if r)
# ── Generate ───────────────────────────────────────────────────────────

View file

@ -1406,9 +1406,7 @@ def test_bad_mode_strings_fail_before_eviction(fake_runtime):
{"text_encoder_quant": "fp3"},
):
with pytest.raises(ValueError):
backend.load_pipeline(
"unsloth/Z-Image-GGUF", gguf_filename = "m.gguf", **kwargs
)
backend.load_pipeline("unsloth/Z-Image-GGUF", gguf_filename = "m.gguf", **kwargs)
assert backend._state is not None