🐛 fix on_type typing error (#1482)

This commit is contained in:
Ju4tCode 2022-12-18 15:53:25 +08:00 committed by GitHub
parent 3de2922773
commit ceecf9c692
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -439,7 +439,7 @@ def on_regex(
def on_type(
types: Union[Type[Event], Tuple[Type[Event]]],
types: Union[Type[Event], Tuple[Type[Event], ...]],
rule: Optional[Union[Rule, T_RuleChecker]] = None,
*,
_depth: int = 0,

View File

@ -154,7 +154,7 @@ def on_regex(
state: Optional[T_State] = ...,
) -> Type[Matcher]: ...
def on_type(
types: Union[Type[Event], Tuple[Type[Event]]],
types: Union[Type[Event], Tuple[Type[Event], ...]],
rule: Optional[Union[Rule, T_RuleChecker]] = ...,
*,
permission: Optional[Union[Permission, T_PermissionChecker]] = ...,