correct typos in model_manager_service

This commit is contained in:
Lincoln Stein 2023-05-13 14:55:59 -04:00
parent 72967bf118
commit 5e8e3cf464

View File

@ -3,7 +3,7 @@
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
from pathlib import Path from pathlib import Path
from typing import Union, Callable, types from typing import Union, Callable, List, Tuple, types
from dataclasses import dataclass from dataclasses import dataclass
from invokeai.backend.model_management.model_manager import ( from invokeai.backend.model_management.model_manager import (
@ -67,7 +67,7 @@ class ModelManagerServiceBase(ABC):
pass pass
@abstractmethod @abstractmethod
def default_model(self) -> Union[Tuple(str, SDModelType),None], def default_model(self) -> Union[Tuple(str, SDModelType),None]:
""" """
Returns the name and typeof the default model, or None Returns the name and typeof the default model, or None
if none is defined. if none is defined.
@ -352,7 +352,7 @@ class ModelManagerService(ModelManagerServiceBase):
model_name, model_name,
model_type) model_type)
def default_model(self) -> Union[Tuple(str, SDModelType),None], def default_model(self) -> Union[Tuple(str, SDModelType),None]:
""" """
Returns the name of the default model, or None Returns the name of the default model, or None
if none is defined. if none is defined.