[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-27 09:10:25 +00:00
commit a77b6f8171
2 changed files with 4 additions and 7 deletions

View file

@ -999,10 +999,7 @@ class SdCppDiffusionBackend:
return images, seeds
def _restart_server_on_cpu_backend(
self,
state: _SdState,
error_text: str,
cancel: threading.Event,
self, state: _SdState, error_text: str, cancel: threading.Event
) -> Optional[SdCppServer]:
"""Relaunch this checkpoint's sd-server with ``--backend cpu``; None if that does not apply.

View file

@ -541,9 +541,9 @@ def test_ggml_unsupported_op_abort_is_recognised_only_with_both_markers():
)
assert is_ggml_unsupported_op_abort(abort) is True
# The RMS_NORM shape of the same abort (text encoder) counts too.
assert is_ggml_unsupported_op_abort(
"error: unsupported op 'RMS_NORM'\nggml_abort + 156"
) is True
assert (
is_ggml_unsupported_op_abort("error: unsupported op 'RMS_NORM'\nggml_abort + 156") is True
)
# Neither marker alone is enough, and an unrelated death is never a match.
assert is_ggml_unsupported_op_abort("unsupported op 'MUL_MAT'") is False
assert is_ggml_unsupported_op_abort("ggml_abort + 156") is False