From 1a596a568453ec67bee3ad155ee7c954262899f8 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Tue, 21 Nov 2023 07:22:02 +1100 Subject: [PATCH] fix(backend): fix unintentional change to import orders - Ignore I001 (isort rules) for this file - Ignore F401 (unused imports) for this file --- invokeai/backend/model_management/__init__.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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