From 1067b5d773d9c9c81fc76ca6ac7f2ed49572dc9a Mon Sep 17 00:00:00 2001 From: Danny Guinther Date: Mon, 8 Jan 2024 12:38:38 -0500 Subject: [PATCH] Fix interface of AbstractJobProcessor to make process static --- qless/abstract/abstract_job_processor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qless/abstract/abstract_job_processor.py b/qless/abstract/abstract_job_processor.py index 16f4d0f..4592f9e 100644 --- a/qless/abstract/abstract_job_processor.py +++ b/qless/abstract/abstract_job_processor.py @@ -27,7 +27,7 @@ def data_class(cls) -> Type[JD]: return data_class raise RuntimeError(f"Unable to determine data class for {cls}") - @classmethod + @staticmethod @abstractmethod - def process(cls, job: AbstractJob) -> None: # pragma: no cover + def process(job: AbstractJob) -> None: # pragma: no cover ...