🏷️ fix regex rule typing error

This commit is contained in:
yanyongyu
2021-03-13 15:35:13 +08:00
parent bb64c6fb71
commit 785eac1345
2 changed files with 3 additions and 3 deletions

View File

@ -489,7 +489,7 @@ def on_shell_command(cmd: Union[str, Tuple[str, ...]],
def on_regex(pattern: str,
flags: Union[int, re.RegexFlag] = 0,
rule: Optional[Rule] = None,
rule: Optional[Union[Rule, T_RuleChecker]] = None,
**kwargs) -> Type[Matcher]:
"""
:说明: