chore: ruff

This commit is contained in:
psychedelicious 2023-11-21 07:14:07 +11:00
parent d073d10f9f
commit da443973cb
2 changed files with 5 additions and 7 deletions

View File

@ -1,7 +1,6 @@
import traceback import traceback
from threading import BoundedSemaphore from threading import BoundedSemaphore, Thread
from threading import Event as ThreadEvent from threading import Event as ThreadEvent
from threading import Thread
from typing import Optional from typing import Optional
from fastapi_events.handlers.local import local_handler from fastapi_events.handlers.local import local_handler

View File

@ -2,10 +2,12 @@
Initialization file for invokeai.backend.model_management Initialization file for invokeai.backend.model_management
""" """
# This import must be first # This import must be first
from .model_manager import ModelManager, ModelInfo, AddModelResult, SchedulerPredictionType # noqa: F401 isort: split
from .lora import ModelPatcher, ONNXModelPatcher # noqa: F401 from .lora import ModelPatcher, ONNXModelPatcher # noqa: F401
from .model_cache import ModelCache # noqa: F401 from .model_cache import ModelCache # noqa: F401
from .model_manager import AddModelResult, ModelInfo, ModelManager, SchedulerPredictionType # noqa: F401 isort: split
# This import must be last
from .model_merge import MergeInterpolationMethod, ModelMerger # noqa: F401 isort: split
from .models import ( # noqa: F401 from .models import ( # noqa: F401
BaseModelType, BaseModelType,
DuplicateModelException, DuplicateModelException,
@ -14,6 +16,3 @@ from .models import ( # noqa: F401
ModelVariantType, ModelVariantType,
SubModelType, SubModelType,
) )
# This import must be last
from .model_merge import ModelMerger, MergeInterpolationMethod # noqa: F401 isort: split