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:
psychedelicious 2024-02-07 18:43:33 +11:00
parent de63e888d6
commit c96f50cc9a

View File

@ -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]):