Skip to content
Advertisement

How to avoid dummy clases during multiple inheritance with conditions

Is it possible to refactor multiinheritance without dummy classes? Maybe anybody have similar issue or have experienxe to tackle it, or at least tell me which way to look??

Code from __init__.py

JavaScript

Advertisement

Answer

It is relatively easy to create a type dynamically in python.

For example:

JavaScript
Advertisement