lisa.utils.get_common_ancestor#

lisa.utils.get_common_ancestor(classes)[source]#

Pick the most derived common ancestor between the classes, assuming single inheritance.

Parameters:

classes (list(type)) – List of classes to look at.

If multiple inheritance is used, only the first base of each class is considered.