mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 09:05:04 +08:00
✏️ fix docs event message type error (#1079)
This commit is contained in:
parent
cf2137a1a9
commit
118874080d
@ -168,7 +168,7 @@ async def _(foo: str = EventType()): ...
|
||||
from nonebot.adapters import Message
|
||||
from nonebot.params import EventMessage
|
||||
|
||||
async def _(foo: str = EventMessage()): ...
|
||||
async def _(foo: Message = EventMessage()): ...
|
||||
```
|
||||
|
||||
### EventPlainText
|
||||
|
@ -168,7 +168,7 @@ async def _(foo: str = EventType()): ...
|
||||
from nonebot.adapters import Message
|
||||
from nonebot.params import EventMessage
|
||||
|
||||
async def _(foo: str = EventMessage()): ...
|
||||
async def _(foo: Message = EventMessage()): ...
|
||||
```
|
||||
|
||||
### EventPlainText
|
||||
|
Loading…
Reference in New Issue
Block a user