diff --git a/website/docs/advanced/dependency.mdx b/website/docs/advanced/dependency.mdx index 4b8cef0505b..450faa578fa 100644 --- a/website/docs/advanced/dependency.mdx +++ b/website/docs/advanced/dependency.mdx @@ -967,7 +967,7 @@ async def _(foo: Annotated[Match[str], RegexMatched()]): ... ```python {4} -from re import Match +from typing import Match from nonebot.params import RegexMatched async def _(foo: Match[str] = RegexMatched()): ... diff --git a/website/versioned_docs/version-2.1.3/advanced/dependency.mdx b/website/versioned_docs/version-2.1.3/advanced/dependency.mdx index 4b8cef0505b..450faa578fa 100644 --- a/website/versioned_docs/version-2.1.3/advanced/dependency.mdx +++ b/website/versioned_docs/version-2.1.3/advanced/dependency.mdx @@ -967,7 +967,7 @@ async def _(foo: Annotated[Match[str], RegexMatched()]): ... ```python {4} -from re import Match +from typing import Match from nonebot.params import RegexMatched async def _(foo: Match[str] = RegexMatched()): ... diff --git a/website/versioned_docs/version-2.2.0/advanced/dependency.mdx b/website/versioned_docs/version-2.2.0/advanced/dependency.mdx index 4b8cef0505b..450faa578fa 100644 --- a/website/versioned_docs/version-2.2.0/advanced/dependency.mdx +++ b/website/versioned_docs/version-2.2.0/advanced/dependency.mdx @@ -967,7 +967,7 @@ async def _(foo: Annotated[Match[str], RegexMatched()]): ... ```python {4} -from re import Match +from typing import Match from nonebot.params import RegexMatched async def _(foo: Match[str] = RegexMatched()): ... diff --git a/website/versioned_docs/version-2.2.1/advanced/dependency.mdx b/website/versioned_docs/version-2.2.1/advanced/dependency.mdx index 4b8cef0505b..450faa578fa 100644 --- a/website/versioned_docs/version-2.2.1/advanced/dependency.mdx +++ b/website/versioned_docs/version-2.2.1/advanced/dependency.mdx @@ -967,7 +967,7 @@ async def _(foo: Annotated[Match[str], RegexMatched()]): ... ```python {4} -from re import Match +from typing import Match from nonebot.params import RegexMatched async def _(foo: Match[str] = RegexMatched()): ...