class documentation
class ClassHierarchyFinalizer: (source)
Constructor: ClassHierarchyFinalizer(classes)
Encapsulate code related to class hierarchies post-processing.
Method | __init__ |
No summary |
Method | compute |
Undocumented |
Instance Variable | computed |
Undocumented |
Instance Variable | graph |
Undocumented |
Class Method | _init |
The base objects are computed in two passes, first the ast visitor sets _initialbaseobjects, then we set _finalbaseobjects from this function which should be called during post-processing. |
Static Method | _getbases |
Like Class.baseobjects but fallback to the expanded name if the base is not resolved to a Class object. |
Method | _compute |
Compute the method resolution order for this class. This assumes that the MRO of the bases of the class have already been computed and stored in self.computed_mros. |
The base objects are computed in two passes, first the ast visitor sets _initialbaseobjects, then we set _finalbaseobjects from this function which should be called during post-processing.
Like Class.baseobjects
but fallback to the expanded name if the base is not resolved to a Class
object.