mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-05 03:26:46 +00:00
✨ Feature: 支持 PEP 695 类型别名 (#3621)
This commit is contained in:
7
tests/python_3_12/plugins/aliased_param/param_bot.py
Normal file
7
tests/python_3_12/plugins/aliased_param/param_bot.py
Normal file
@ -0,0 +1,7 @@
|
||||
from nonebot.adapters import Bot
|
||||
|
||||
type AliasedBot = Bot
|
||||
|
||||
|
||||
async def get_aliased_bot(b: AliasedBot) -> Bot:
|
||||
return b
|
Reference in New Issue
Block a user