fix(config): use TypeAlias instead of TypeVar

TypeVar is for generics, but the usage here is as an alias
This commit is contained in:
psychedelicious 2024-04-23 17:12:19 +10:00
parent e39f035264
commit aca9e44a3a

View File

@ -4,12 +4,12 @@
Utility class for migrating among versions of the InvokeAI app config schema.
"""
from typing import Any, Callable, List, TypeVar
from typing import Any, Callable, List, TypeAlias
from packaging.version import Version
from pydantic import BaseModel, ConfigDict, field_validator
AppConfigDict = TypeVar("AppConfigDict", bound=dict[str, Any])
AppConfigDict: TypeAlias = dict[str, Any]
class MigrationEntry(BaseModel):