Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/nonebot/nonebot2
/ get_adapter
Function
get_adapter
nonebot/__init__.py:94–101 ·
view source on GitHub ↗
参数: name: 适配器名称 返回: 指定名称的 {ref}`nonebot.adapters.Adapter` 对象
(name: str)
Source
from the content-addressed store, hash-verified
92
93
@overload
94
def
get_adapter(name: str) -> Adapter:
95
""
"
96
参数:
97
name: 适配器名称
98
99
返回:
100
指定名称的 {ref}`nonebot.adapters.Adapter` 对象
101
""
"
102
103
104
@overload
Callers
1
test_get_adapter
Function · 0.90
Calls
2
get_adapters
Function · 0.85
get_name
Method · 0.45
Tested by
1
test_get_adapter
Function · 0.72