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_event.py
Normal file
7
tests/python_3_12/plugins/aliased_param/param_event.py
Normal file
@ -0,0 +1,7 @@
|
||||
from nonebot.adapters import Event
|
||||
|
||||
type AliasedEvent = Event
|
||||
|
||||
|
||||
async def aliased_event(e: AliasedEvent) -> Event:
|
||||
return e
|
Reference in New Issue
Block a user