nonebot2/tests/plugins/param/param_bot.py

14 lines
166 B
Python
Raw Normal View History

2021-12-20 00:28:02 +08:00
from nonebot.adapters import Bot
async def get_bot(b: Bot) -> Bot:
return b
class SubBot(Bot):
...
async def sub_bot(b: SubBot) -> SubBot:
2021-12-20 00:28:02 +08:00
return b