mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-04 02:56:45 +00:00
✨ Feature: 支持 PEP 695 类型别名 (#3621)
This commit is contained in:
7
tests/python_3_12/plugins/aliased_param/param_state.py
Normal file
7
tests/python_3_12/plugins/aliased_param/param_state.py
Normal file
@ -0,0 +1,7 @@
|
||||
from nonebot.typing import T_State
|
||||
|
||||
type AliasedState = T_State
|
||||
|
||||
|
||||
async def aliased_state(x: AliasedState) -> T_State:
|
||||
return x
|
Reference in New Issue
Block a user