Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/nonebot/nonebot2
/ load_all_plugins
Method
load_all_plugins
nonebot/plugin/manager.py:201–206 ·
view source on GitHub ↗
加载所有可用插件。
(self)
Source
from the content-addressed store, hash-verified
199
)
200
201
def
load_all_plugins(self) -> set[Plugin]:
202
""
"加载所有可用插件。"
""
203
204
return
set(
205
filter(None, (self.load_plugin(name)
for
name in self.available_plugins))
206
)
207
208
209
class
PluginFinder(MetaPathFinder):
Callers
3
load_plugins
Function · 0.95
load_all_plugins
Function · 0.95
test_load_plugins
Function · 0.80
Calls
1
load_plugin
Method · 0.95
Tested by
1
test_load_plugins
Function · 0.64