I have a class
class A(ABC):
@abstractmethod
def m():
pass
and a bunch of classes inheriting from it.
class M1(A):
...
class M2(A):
...
...
Some of these have a lot in common as they share a lot of functionality such that I would like to introduce a common base class which itself inherits from A, but it does not introduce any new @abstractmethod methods:
A
|
+----+----+
| | |
M1 M2 B
|
+--+--+
| |
K1 K2
What should the definition for class B look like?
I'm on Python 3.8
EDIT: I am specifically asking as PyCharm tells me "B must inherit all abstract methods"