mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
feat(nodes): ItemStorageABC typevar no longer bound to pydantic.BaseModel
This bound is totally unnecessary. There's no requirement for any implementation of `ItemStorageABC` to work only on pydantic models.
This commit is contained in:
committed by
Brandon Rising
parent
ebc3a24d0d
commit
c7218dc130
@@ -1,9 +1,7 @@
|
||||
from abc import ABC, abstractmethod
|
||||
from typing import Callable, Generic, TypeVar
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
T = TypeVar("T", bound=BaseModel)
|
||||
T = TypeVar("T")
|
||||
|
||||
|
||||
class ItemStorageABC(ABC, Generic[T]):
|
||||
|
||||
Reference in New Issue
Block a user