mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-25 01:25:04 +08:00
45e2e6c280
Fix: 修复 event 类型检查会对类型进行自动转换
14 lines
166 B
Python
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
|