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:
psychedelicious 2024-02-20 17:48:51 +11:00
parent 5d84ecef49
commit d709c5519f

View File

@ -1,26 +1,9 @@
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
from typing import Optional from typing import Optional
from invokeai.app.services.invoker import Invoker
class BulkDownloadBase(ABC): class BulkDownloadBase(ABC):
@abstractmethod """Responsible for creating a zip file containing the images specified by the given image names or board id."""
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.
"""
@abstractmethod @abstractmethod
def handler( def handler(
@ -52,10 +35,6 @@ class BulkDownloadBase(ABC):
:return: The generated item ID. :return: The generated item ID.
""" """
@abstractmethod
def stop(self, *args, **kwargs) -> None:
"""Stops the BulkDownloadService and cleans up."""
@abstractmethod @abstractmethod
def delete(self, bulk_download_item_name: str) -> None: def delete(self, bulk_download_item_name: str) -> None:
""" """