Skip to content

Commit

Permalink
feat(plugin): 支持在运行时读取插件类的泛型参数以获取初始化状态和插件配置类
Browse files Browse the repository at this point in the history
  • Loading branch information
st1020 committed Oct 28, 2023
1 parent a32218d commit ec81641
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions alicebot/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@
Type,
cast,
final,
get_args,
get_origin,
)
from typing_extensions import Annotated
from typing_extensions import Annotated, get_args, get_origin

from alicebot.config import ConfigModel
from alicebot.dependencies import Depends
Expand Down

0 comments on commit ec81641

Please sign in to comment.