RUF013 update

This commit is contained in:
awsr
2026-03-23 22:53:34 -07:00
parent 8e10ec3fec
commit d474f28cb3
3 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -242,7 +242,7 @@ def get_checkpoint():
checkpoint['hash'] = shared.sd_model.sd_checkpoint_info.shorthash
return checkpoint
def set_checkpoint(sd_model_checkpoint: str, dtype:str=None, force:bool=False):
def set_checkpoint(sd_model_checkpoint: str, dtype: str | None = None, force: bool = False):
"""Load a checkpoint by name. Optionally set dtype and force a clean reload."""
from modules import sd_models, devices
if force: