Browse Source

Tuple[str] -> Tuple[str, ...] for aliases

pull/10286/head
Soheab_ 3 days ago
parent
commit
93ac32839d
  1. 2
      discord/ext/commands/core.py

2
discord/ext/commands/core.py

@ -449,7 +449,7 @@ class Command(_BaseCommand, Generic[CogT, P, T]):
self.brief: Optional[str] = kwargs.get('brief')
self.usage: Optional[str] = kwargs.get('usage')
self.rest_is_raw: bool = kwargs.get('rest_is_raw', False)
self.aliases: Union[List[str], Tuple[str]] = kwargs.get('aliases', [])
self.aliases: Union[List[str], Tuple[str, ...]] = kwargs.get('aliases', [])
self.extras: Dict[Any, Any] = kwargs.get('extras', {})
if not isinstance(self.aliases, (list, tuple)):

Loading…
Cancel
Save