cogwheel.prior.check_inheritance_order¶
- cogwheel.prior.check_inheritance_order(subclass, base1, base2)¶
Check that subclass does not inherit from base2 before base1.
If subclass doesn’t inherit from either base1 or base2 this function exits silently.
- Parameters:
- subclass, base1, base2class
Classes to test.
- Raises:
- PriorError
If the inheritance order is incorrect, i.e. subclass inherits from base2 before base1.