mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 00:55:07 +08:00
🐛 fix typing error for mutex
This commit is contained in:
parent
b343fb8e6f
commit
12d9a68351
@ -1,4 +1,4 @@
|
|||||||
from typing import Dict, Generator
|
from typing import Dict, AsyncGenerator
|
||||||
|
|
||||||
from nonebot.adapters import Event
|
from nonebot.adapters import Event
|
||||||
from nonebot.params import Depends
|
from nonebot.params import Depends
|
||||||
@ -7,7 +7,7 @@ from nonebot.message import IgnoredException, event_preprocessor
|
|||||||
_running_matcher: Dict[str, int] = {}
|
_running_matcher: Dict[str, int] = {}
|
||||||
|
|
||||||
|
|
||||||
async def matcher_mutex(event: Event) -> Generator[bool, None, None]:
|
async def matcher_mutex(event: Event) -> AsyncGenerator[bool, None]:
|
||||||
result = False
|
result = False
|
||||||
try:
|
try:
|
||||||
session_id = event.get_session_id()
|
session_id = event.get_session_id()
|
||||||
|
Loading…
Reference in New Issue
Block a user