mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-02-25 03:49:44 +08:00
🐛 fix on_type typing error (#1482)
This commit is contained in:
parent
3de2922773
commit
ceecf9c692
@ -439,7 +439,7 @@ def on_regex(
|
|||||||
|
|
||||||
|
|
||||||
def on_type(
|
def on_type(
|
||||||
types: Union[Type[Event], Tuple[Type[Event]]],
|
types: Union[Type[Event], Tuple[Type[Event], ...]],
|
||||||
rule: Optional[Union[Rule, T_RuleChecker]] = None,
|
rule: Optional[Union[Rule, T_RuleChecker]] = None,
|
||||||
*,
|
*,
|
||||||
_depth: int = 0,
|
_depth: int = 0,
|
||||||
|
@ -154,7 +154,7 @@ def on_regex(
|
|||||||
state: Optional[T_State] = ...,
|
state: Optional[T_State] = ...,
|
||||||
) -> Type[Matcher]: ...
|
) -> Type[Matcher]: ...
|
||||||
def on_type(
|
def on_type(
|
||||||
types: Union[Type[Event], Tuple[Type[Event]]],
|
types: Union[Type[Event], Tuple[Type[Event], ...]],
|
||||||
rule: Optional[Union[Rule, T_RuleChecker]] = ...,
|
rule: Optional[Union[Rule, T_RuleChecker]] = ...,
|
||||||
*,
|
*,
|
||||||
permission: Optional[Union[Permission, T_PermissionChecker]] = ...,
|
permission: Optional[Union[Permission, T_PermissionChecker]] = ...,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user