mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-01 01:26:46 +00:00
11 lines
211 B
Python
11 lines
211 B
Python
from typing import Annotated
|
|
|
|
from nonebot.adapters import Message
|
|
from nonebot.params import Arg
|
|
|
|
type AliasedArg = Annotated[Message, Arg()]
|
|
|
|
|
|
async def aliased_arg(key: AliasedArg) -> Message:
|
|
return key
|