I am experimenting with subclasses that all need the same metaclass as the base class. Is there a way to make the metaclass be inherited, so that you don't have to repeat the "metaclass = MetaClass" with every subclass.
...class Pardon(type): pass
...class A(metaclass=Pardon): pass
...class B(A): pass
<class '__main__.Pardon'>type(B)
| Sysop: | Coz |
|---|---|
| Location: | Anoka, MN |
| Users: | 2 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 62:20:03 |
| Calls: | 365 |
| Files: | 6,438 |
| Messages: | 236,414 |