子类加载

This commit is contained in:
liuwei
2025-03-19 10:34:12 +08:00
parent d99f8b4f1e
commit 0afe7dc323

View File

@@ -107,10 +107,9 @@ class PluginManager:
plugin_class = None
for name, obj in inspect.getmembers(module):
if (inspect.isclass(obj) and
issubclass(obj, PluginInterface) and
(issubclass(obj, PluginInterface) or issubclass(obj, MessagePluginInterface)) and
obj != PluginInterface and
obj != MessagePluginInterface and
obj != ScheduledPluginInterface):
obj != MessagePluginInterface):
plugin_class = obj
break