Say I have
class A:
# Some code
Then, I want to create an abstract subclass B of A, which itself is concrete. Should I use multi-inheritance for this purpose? If so, should I import ABC first, as in
class B(ABC, A):
@abstractmethod
def some_method():
pass
, or should I import it last, as in
class B(A, ABC):
@abstractmethod
def some_method():
pass
torch.nn.Module). I might want to implement a group of concreteModules, and extract an abstract base class to reduce duplication. That abstract class should still inherit fromModule, which itself is concrete.