🐛 detect runtime plugin (#1857)

This commit is contained in:
Ju4tCode
2023-03-29 12:22:50 +08:00
committed by GitHub
parent 17c86f7da2
commit 2a2f7b6dce
6 changed files with 163 additions and 85 deletions

View File

@ -47,7 +47,7 @@ class Plugin:
manager: "PluginManager"
"""导入该插件的插件管理器"""
matcher: Set[Type[Matcher]] = field(default_factory=set)
"""插件定义的 `Matcher`"""
"""插件加载时定义的 `Matcher`"""
parent_plugin: Optional["Plugin"] = None
"""父插件"""
sub_plugins: Set["Plugin"] = field(default_factory=set)