mirror of
https://github.com/invoke-ai/InvokeAI
synced 2025-07-25 21:05:37 +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:
@ -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):
|
||||
|
Reference in New Issue
Block a user