mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
tidy(bulk_download): remove extraneous abstract methods
`start`, `stop` and `__init__` are not required in implementations of an ABC or service.
This commit is contained in:
parent
5d84ecef49
commit
d709c5519f
@ -1,26 +1,9 @@
|
||||
from abc import ABC, abstractmethod
|
||||
from typing import Optional
|
||||
|
||||
from invokeai.app.services.invoker import Invoker
|
||||
|
||||
|
||||
class BulkDownloadBase(ABC):
|
||||
@abstractmethod
|
||||
def start(self, invoker: Invoker) -> None:
|
||||
"""
|
||||
Starts the BulkDownloadService.
|
||||
|
||||
This method is responsible for starting the BulkDownloadService and performing any necessary initialization
|
||||
operations to prepare the service for use.
|
||||
|
||||
param: invoker: The Invoker that holds all the services, required to be passed as a parameter to avoid circular dependencies.
|
||||
"""
|
||||
|
||||
@abstractmethod
|
||||
def __init__(self):
|
||||
"""
|
||||
Create BulkDownloadBase object.
|
||||
"""
|
||||
"""Responsible for creating a zip file containing the images specified by the given image names or board id."""
|
||||
|
||||
@abstractmethod
|
||||
def handler(
|
||||
@ -52,10 +35,6 @@ class BulkDownloadBase(ABC):
|
||||
:return: The generated item ID.
|
||||
"""
|
||||
|
||||
@abstractmethod
|
||||
def stop(self, *args, **kwargs) -> None:
|
||||
"""Stops the BulkDownloadService and cleans up."""
|
||||
|
||||
@abstractmethod
|
||||
def delete(self, bulk_download_item_name: str) -> None:
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user