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")