From aca9e44a3a68098505de6b43dc45e6232948cff3 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Tue, 23 Apr 2024 17:12:19 +1000 Subject: [PATCH] fix(config): use TypeAlias instead of TypeVar TypeVar is for generics, but the usage here is as an alias --- invokeai/app/services/config/config_migrate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invokeai/app/services/config/config_migrate.py b/invokeai/app/services/config/config_migrate.py index f746a8d049..591f86f04a 100644 --- a/invokeai/app/services/config/config_migrate.py +++ b/invokeai/app/services/config/config_migrate.py @@ -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):