I am working on a codebase that I don't entirely master (yet). I have the following 3-class stucture:
class Processor(ABC):
@abstractmethod
def process(self, *args: Any, **kwargs: Any):
pass
class AbstractEsTask(Processor, ABC):
def calculate(self, param):
...
@DplTask
class EsDirectTask(AbstractEsTask):
def process(self):
return self.calculate(param = "DIRECT")
It seems to me that having AbstractEsTask
inherit from ABC
is superfluous, since Processor
already does.
I have tried editing the code accordingly (class AbstractEsTask(Processor, ABC)
-> class AbstractEsTask(Processor)
) and couldn't observe any change in the output. But, since it's a large codebase, this is probably not enough.
Is my understanding (in bold above) correct?