mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-17 19:40:44 +00:00
🏷️ 完善 typing 及注释
This commit is contained in:
@ -148,6 +148,15 @@ class ActionFailed(Exception):
|
||||
|
||||
|
||||
class AdapterException(Exception):
|
||||
"""
|
||||
:说明:
|
||||
|
||||
def __init__(self, adapter_name) -> None:
|
||||
代表 Adapter 抛出的异常,所有的 Adapter 都要在内部继承自这个 `Exception`
|
||||
|
||||
:参数:
|
||||
|
||||
* ``adapter_name: str``: 标识 adapter
|
||||
"""
|
||||
|
||||
def __init__(self, adapter_name: str) -> None:
|
||||
self.adapter_name = adapter_name
|
||||
|
Reference in New Issue
Block a user