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_matcher.py
Normal file
7
tests/python_3_12/plugins/aliased_param/param_matcher.py
Normal file
@ -0,0 +1,7 @@
|
||||
from nonebot.matcher import Matcher
|
||||
|
||||
type AliasedMatcher = Matcher
|
||||
|
||||
|
||||
async def aliased_matcher(m: AliasedMatcher) -> Matcher:
|
||||
return m
|
Reference in New Issue
Block a user