📝 Docs: 修复 RegexMatched 文档类型标注错误 (#2629)

This commit is contained in:
Akirami 2024-04-04 16:12:39 +08:00 committed by GitHub
parent 407eb69568
commit 211ea8427f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -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()): ...

View File

@ -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()): ...

View File

@ -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()): ...

View File

@ -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()): ...