nonebot2/tests/plugins/param/param_bot.py
Ju4tCode 45e2e6c280
🐛 fix event maybe converted when checking type (#876)
Fix: 修复 event 类型检查会对类型进行自动转换
2022-03-20 19:40:43 +08:00

14 lines
166 B
Python

from nonebot.adapters import Bot
async def get_bot(b: Bot) -> Bot:
return b
class SubBot(Bot):
...
async def sub_bot(b: SubBot) -> SubBot:
return b