mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-27 08:11:38 +00:00
令返回符合格式
This commit is contained in:
@ -58,10 +58,6 @@ def get_plugin(name: str) -> Optional[Plugin]:
|
||||
|
||||
参数:
|
||||
name: 插件名,与 `load_plugin` 参数一致。如果为 `load_plugins` 导入的插件,则为文件(夹)名。
|
||||
|
||||
:返回:
|
||||
|
||||
- `Optional[Plugin]`
|
||||
"""
|
||||
return plugins.get(name)
|
||||
|
||||
@ -69,10 +65,6 @@ def get_plugin(name: str) -> Optional[Plugin]:
|
||||
def get_loaded_plugins() -> Set[Plugin]:
|
||||
"""
|
||||
获取当前已导入的所有插件。
|
||||
|
||||
:返回:
|
||||
|
||||
- `Set[Plugin]`
|
||||
"""
|
||||
return set(plugins.values())
|
||||
|
||||
|
Reference in New Issue
Block a user