Cornerstone-OnDemand/modelkit

MRO is not respected in the class `Asset`

llin17 opened this issue · 1 comments

llin17 commented

The current code suffers from a method resolution order (MRO) issue. In the Asset class, the __init__ method does not call super().__init__(), resulting in an incorrect MRO. This omission prevents the proper initialization of the superclass, leading to potential errors or undesired behavior when inheriting from Asset. To ensure that the MRO is respected and the superclass is initialized correctly, it is necessary to include super().__init__() in the __init__ method of the Asset class.

See discussion in #192