mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(nodes): add delete
method to ItemStorageABC
This commit is contained in:
parent
a4f892dcfb
commit
8bd32ee142
@ -30,6 +30,11 @@ class ItemStorageABC(ABC, Generic[T]):
|
|||||||
"""Sets the item"""
|
"""Sets the item"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def delete(self, item_id: str) -> None:
|
||||||
|
"""Deletes the item"""
|
||||||
|
pass
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def list(self, page: int = 0, per_page: int = 10) -> PaginatedResults[T]:
|
def list(self, page: int = 0, per_page: int = 10) -> PaginatedResults[T]:
|
||||||
"""Gets a paginated list of items"""
|
"""Gets a paginated list of items"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user