fix command type

This commit is contained in:
AsakuraMizu 2020-08-23 20:01:58 +08:00
parent dffb9c17c5
commit 2e7c86dc23
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ def on_endswith(msg: str,
startswith(msg), permission, **kwargs)
def on_command(cmd: Union[str, Tuple[str]],
def on_command(cmd: Union[str, Tuple[str, ...]],
rule: Optional[Union[Rule, RuleChecker]] = None,
permission: Permission = Permission(),
**kwargs) -> Type[Matcher]:

View File

@ -105,7 +105,7 @@ def keyword(msg: str) -> Rule:
return Rule(_keyword)
def command(command: Tuple[str]) -> Rule:
def command(command: Tuple[str, ...]) -> Rule:
config = get_driver().config
command_start = config.command_start
command_sep = config.command_sep