chore: remove unused imports, add optional for delete dataset statement
This commit is contained in:
parent
5cfc7b1761
commit
dbcb35a6da
2 changed files with 1 additions and 4 deletions
|
|
@ -68,7 +68,7 @@ class DatasetDatabaseHandlerInterface(ABC):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
async def delete_dataset(cls, dataset_id: UUID, user: User) -> None:
|
async def delete_dataset(cls, dataset_id: Optional[UUID], user: Optional[User]) -> None:
|
||||||
"""
|
"""
|
||||||
Delete the graph or vector database for the given dataset.
|
Delete the graph or vector database for the given dataset.
|
||||||
Function should auto handle deleting of the actual database or send a request to the proper service to delete/mark the database as not needed for the given dataset.
|
Function should auto handle deleting of the actual database or send a request to the proper service to delete/mark the database as not needed for the given dataset.
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,3 @@
|
||||||
import os
|
|
||||||
import asyncio
|
|
||||||
import requests
|
|
||||||
from uuid import UUID
|
from uuid import UUID
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue