🐛 fix typing

This commit is contained in:
yanyongyu
2020-12-17 01:52:16 +08:00
parent 784bc7b0cf
commit 6bd69e6708
2 changed files with 27 additions and 4 deletions

View File

@ -336,7 +336,7 @@ class Matcher(metaclass=MatcherMeta):
@wraps(func)
async def wrapper(bot: "Bot", event: "Event", state: State):
await parser(bot, event, state)
await cls.run_handler(parser, bot, event, state)
await cls.run_handler(func, bot, event, state)
if "_current_key" in state:
del state["_current_key"]