Skip to content

Commit

Permalink
✨ Feature: 为 Matcher.HANDLER_PARAM_TYPES 补增类型 (#2352)
Browse files Browse the repository at this point in the history
Co-authored-by: Ju4tCode <[email protected]>
  • Loading branch information
RF-Tar-Railt and yanyongyu authored Sep 9, 2023
1 parent 6c7b6a9 commit fd126ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nonebot/internal/matcher/matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
Any,
List,
Type,
Tuple,
Union,
TypeVar,
Callable,
Expand All @@ -26,7 +27,7 @@
from nonebot.log import logger
from nonebot.internal.rule import Rule
from nonebot.utils import classproperty
from nonebot.dependencies import Dependent
from nonebot.dependencies import Param, Dependent
from nonebot.internal.permission import User, Permission
from nonebot.internal.adapter import (
Bot,
Expand Down Expand Up @@ -159,7 +160,7 @@ class Matcher(metaclass=MatcherMeta):
_default_permission_updater: ClassVar[Optional[Dependent[Permission]]] = None
"""事件响应器权限更新函数"""

HANDLER_PARAM_TYPES = (
HANDLER_PARAM_TYPES: ClassVar[Tuple[Type[Param], ...]] = (
DependParam,
BotParam,
EventParam,
Expand Down

0 comments on commit fd126ae

Please sign in to comment.