mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-01-19 09:38:21 +08:00
📝 Docs: 修复 RegexMatched
文档类型标注错误 (#2629)
This commit is contained in:
parent
407eb69568
commit
211ea8427f
@ -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()): ...
|
||||
|
@ -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()): ...
|
||||
|
@ -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()): ...
|
||||
|
@ -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()): ...
|
||||
|
Loading…
Reference in New Issue
Block a user