feat: add type ignore comments and remove unused imports

- Add `# type: ignore` comments to comfy.sd and folder_paths imports
- Remove unused imports: os, random, and extract_lora_name
- Clean up import statements across checkpoint_loader, lora_randomizer, and unet_loader nodes
This commit is contained in:
Will Miao
2026-03-19 15:54:49 +08:00
parent 9f5d2d0c18
commit b11c90e19b
3 changed files with 3 additions and 6 deletions

View File

@@ -1,8 +1,7 @@
import logging
import os
from typing import List, Tuple
import comfy.sd
import folder_paths
import comfy.sd # type: ignore
import folder_paths # type: ignore
from ..utils.utils import get_checkpoint_info_absolute, _format_model_name_for_comfyui
logger = logging.getLogger(__name__)

View File

@@ -7,10 +7,8 @@ and tracks the last used combination for reuse.
"""
import logging
import random
import os
from ..utils.utils import get_lora_info
from .utils import extract_lora_name
logger = logging.getLogger(__name__)

View File

@@ -1,7 +1,7 @@
import logging
import os
from typing import List, Tuple
import comfy.sd
import comfy.sd # type: ignore
from ..utils.utils import get_checkpoint_info_absolute, _format_model_name_for_comfyui
logger = logging.getLogger(__name__)