Skip to content

Commit

Permalink
📝 Docs: 修复 RegexMatched 文档类型标注错误 (#2629)
Browse files Browse the repository at this point in the history
  • Loading branch information
A-kirami committed Apr 4, 2024
1 parent 407eb69 commit 211ea84
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion website/docs/advanced/dependency.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ async def _(foo: Annotated[Match[str], RegexMatched()]): ...
<TabItem value="3.8" label="Python 3.8+">

```python {4}
from re import Match
from typing import Match
from nonebot.params import RegexMatched

async def _(foo: Match[str] = RegexMatched()): ...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ async def _(foo: Annotated[Match[str], RegexMatched()]): ...
<TabItem value="3.8" label="Python 3.8+">

```python {4}
from re import Match
from typing import Match
from nonebot.params import RegexMatched

async def _(foo: Match[str] = RegexMatched()): ...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ async def _(foo: Annotated[Match[str], RegexMatched()]): ...
<TabItem value="3.8" label="Python 3.8+">

```python {4}
from re import Match
from typing import Match
from nonebot.params import RegexMatched

async def _(foo: Match[str] = RegexMatched()): ...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ async def _(foo: Annotated[Match[str], RegexMatched()]): ...
<TabItem value="3.8" label="Python 3.8+">

```python {4}
from re import Match
from typing import Match
from nonebot.params import RegexMatched

async def _(foo: Match[str] = RegexMatched()): ...
Expand Down

0 comments on commit 211ea84

Please sign in to comment.