From 516b9f4a45b1293f160ab3d51b07777a4258facf Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Mon, 14 Sep 2026 12:11:52 +0200 Subject: [PATCH] lint Signed-off-by: Vladimir Mandic --- TODO.md | 6 ------ extensions-builtin/sdnext-modernui | 2 +- modules/lora/network.py | 6 +++--- modules/sd_checkpoint.py | 10 +++++----- 4 files changed, 9 insertions(+), 15 deletions(-) diff --git a/TODO.md b/TODO.md index 239489ae1..853262554 100644 --- a/TODO.md +++ b/TODO.md @@ -2,9 +2,7 @@ ## Short-term -- MiniMax: Create pre-quants for MiniMax-H3-Turbo, MiniMax-H3-Pruned-Turbo - Control tab verify overrides handling, @vladmandic -- LTX: Create pre-quant for LTX-2.5 - LTX: Implement LTX2DFRPipeline - ROCm: v10 - Video: unify execution path for ui and api @@ -13,7 +11,6 @@ ## Issues - [Inpaint](https://discord.com/channels/1101998836328697867/1130536562422186044/1506850651035144322), @vladmandic -- [OpenVINO](https://github.com/vladmandic/sdnext/issues/4939), @vladmandic ## Features @@ -29,9 +26,6 @@ ### Roadmap - Automated testing and integrate models repo -- [MiniMax VDN](https://huggingface.co/OpenVDN/vdn-minimax-h3) -- [MiniMax VSA](https://huggingface.co/FastVideo/FastVideo-FastH3-4-step-Preview-v1-VSA-DataFree) -- [MiniMax Nunchaku-Lite](https://huggingface.co/rootonchair/MiniMax-H3-nunchaku-lite-int4) - Video upscaling: LTX-Upscaler - Video upscaling: [MiniMax-Upscaler](https://huggingface.co/LBH-123-AI/Minimax_h3_latent_Upscaler) - Video capabilities to processing tab, add RIFE, upscaling (once available) diff --git a/extensions-builtin/sdnext-modernui b/extensions-builtin/sdnext-modernui index e91b28e90..63b59e517 160000 --- a/extensions-builtin/sdnext-modernui +++ b/extensions-builtin/sdnext-modernui @@ -1 +1 @@ -Subproject commit e91b28e904e7507cfb2a3ae0ec7835fb2f945d48 +Subproject commit 63b59e51787d5aee7ef67065c81c62a9a43cb654 diff --git a/modules/lora/network.py b/modules/lora/network.py index bfbf29bfa..899e6940c 100644 --- a/modules/lora/network.py +++ b/modules/lora/network.py @@ -22,11 +22,11 @@ class SdVersion(enum.Enum): class NetworkOnDisk: - def __init__(self, name, filename): + def __init__(self, name: str, filename: str): self.shorthash = None self.hash = None - self.name = name - self.filename = filename + self.name: str = name + self.filename: str = filename if filename.startswith(shared.cmd_opts.lora_dir): # strip("/") missed Windows's leading backslash after the slice; normalize separators # so the registry key is one canonical form on every OS. diff --git a/modules/sd_checkpoint.py b/modules/sd_checkpoint.py index 783186ed4..9831befd2 100644 --- a/modules/sd_checkpoint.py +++ b/modules/sd_checkpoint.py @@ -27,11 +27,11 @@ warn_once = False class CheckpointInfo: def __init__(self, filename: str, name: str | None = None, sha: str | None = None, subfolder: str | None = None, model_type: str = 'checkpoint', folder: str | None = None): - self.name = name - self.hash = sha - self.filename = filename if filename is not None else 'none' - self.type = '' - self.subfolder = subfolder + self.filename: str = filename if filename is not None else 'none' + self.name: str = name if name is not None else '' + self.hash: str | None = sha + self.type: str = '' + self.subfolder: str | None = subfolder relname = self.filename app_path = os.path.abspath(paths.script_path)