From 118874080da8fac49376899fd9cce29da73ecaaf Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Tue, 5 Jul 2022 10:15:55 +0800 Subject: [PATCH] :pencil2: fix docs event message type error (#1079) --- website/docs/tutorial/plugin/create-handler.md | 2 +- .../version-2.0.0-beta.4/tutorial/plugin/create-handler.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/tutorial/plugin/create-handler.md b/website/docs/tutorial/plugin/create-handler.md index c71706d9..758bd8f3 100644 --- a/website/docs/tutorial/plugin/create-handler.md +++ b/website/docs/tutorial/plugin/create-handler.md @@ -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 diff --git a/website/versioned_docs/version-2.0.0-beta.4/tutorial/plugin/create-handler.md b/website/versioned_docs/version-2.0.0-beta.4/tutorial/plugin/create-handler.md index c71706d9..758bd8f3 100644 --- a/website/versioned_docs/version-2.0.0-beta.4/tutorial/plugin/create-handler.md +++ b/website/versioned_docs/version-2.0.0-beta.4/tutorial/plugin/create-handler.md @@ -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