mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(config): use TypeAlias instead of TypeVar
TypeVar is for generics, but the usage here is as an alias
This commit is contained in:
parent
e39f035264
commit
aca9e44a3a
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user