2👍
✅
You need to instantiate the plugin class when adding it to the locals of the FooClass. So replace this line foo_cls[0].locals['plu'] = plugin_cls_def.lookup('Plugin')[1]
with foo_cls[0].locals['plu'] = [cls.instantiate_class() for cls in plugin_cls_def.lookup('Plugin')[1]]
Source:stackexchange.com