diff --git a/invokeai/backend/model_management/__init__.py b/invokeai/backend/model_management/__init__.py index 0a81bc2108..03abf58eb4 100644 --- a/invokeai/backend/model_management/__init__.py +++ b/invokeai/backend/model_management/__init__.py @@ -1,14 +1,13 @@ +# ruff: noqa: I001, F401 """ Initialization file for invokeai.backend.model_management """ # This import must be first -from .lora import ModelPatcher, ONNXModelPatcher # noqa: F401 -from .model_cache import ModelCache # noqa: F401 -from .model_manager import AddModelResult, ModelInfo, ModelManager, SchedulerPredictionType # noqa: F401 isort: split +from .model_manager import AddModelResult, ModelInfo, ModelManager, SchedulerPredictionType +from .lora import ModelPatcher, ONNXModelPatcher +from .model_cache import ModelCache -# This import must be last -from .model_merge import MergeInterpolationMethod, ModelMerger # noqa: F401 isort: split -from .models import ( # noqa: F401 +from .models import ( BaseModelType, DuplicateModelException, ModelNotFoundException, @@ -16,3 +15,6 @@ from .models import ( # noqa: F401 ModelVariantType, SubModelType, ) + +# This import must be last +from .model_merge import MergeInterpolationMethod, ModelMerger