mirror of
https://github.com/nonebot/nonebot2.git
synced 2026-06-12 23:52:26 +00:00
✨ Feature: 支持 PEP 695 类型别名 (#3621)
This commit is contained in:
@@ -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