From 59c77d312a2f6cfd8476e2820a4f85e4e93e27ee Mon Sep 17 00:00:00 2001 From: HibiKier <45528451+HibiKier@users.noreply.github.com> Date: Sun, 9 Jan 2022 22:25:09 +0800 Subject: [PATCH] :memo: fix di import path --- website/docs/advanced/di/dependency-injection.md | 6 +++--- .../advanced/di/dependency-injection.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/website/docs/advanced/di/dependency-injection.md b/website/docs/advanced/di/dependency-injection.md index 67ce8b60..57a1e515 100644 --- a/website/docs/advanced/di/dependency-injection.md +++ b/website/docs/advanced/di/dependency-injection.md @@ -26,7 +26,7 @@ options: ```python {7-9} from nonebot.log import logger -from nonebot.dependencies import Depends +from nonebot.params import Depends from nonebot import on_command, on_message test = on_command("123") @@ -52,7 +52,7 @@ async def _(x: dict = Depends(depend)): ```python {2} from nonebot.log import logger -from nonebot.dependencies import Depends +from nonebot.params import Depends from nonebot import on_command, on_message test = on_command("123") @@ -72,7 +72,7 @@ async def _(x: dict = Depends(depend)): ```python {12} from nonebot.log import logger -from nonebot.dependencies import Depends +from nonebot.params import Depends from nonebot import on_command, on_message test = on_command("123") diff --git a/website/versioned_docs/version-2.0.0-beta.1/advanced/di/dependency-injection.md b/website/versioned_docs/version-2.0.0-beta.1/advanced/di/dependency-injection.md index 67ce8b60..57a1e515 100644 --- a/website/versioned_docs/version-2.0.0-beta.1/advanced/di/dependency-injection.md +++ b/website/versioned_docs/version-2.0.0-beta.1/advanced/di/dependency-injection.md @@ -26,7 +26,7 @@ options: ```python {7-9} from nonebot.log import logger -from nonebot.dependencies import Depends +from nonebot.params import Depends from nonebot import on_command, on_message test = on_command("123") @@ -52,7 +52,7 @@ async def _(x: dict = Depends(depend)): ```python {2} from nonebot.log import logger -from nonebot.dependencies import Depends +from nonebot.params import Depends from nonebot import on_command, on_message test = on_command("123") @@ -72,7 +72,7 @@ async def _(x: dict = Depends(depend)): ```python {12} from nonebot.log import logger -from nonebot.dependencies import Depends +from nonebot.params import Depends from nonebot import on_command, on_message test = on_command("123")