[commands] Add missing and fix existing type annotations

This commit is contained in:
Stocker
2022-03-22 06:04:46 -04:00
committed by GitHub
parent 46b3e036e2
commit eca4727593
4 changed files with 18 additions and 14 deletions

View File

@ -262,6 +262,7 @@ class HelpCommand(HelpCommandCommand, Generic[ContextT]):
) -> None:
self.show_hidden: bool = show_hidden
self.verify_checks: bool = verify_checks
self.command_attrs: Dict[str, Any]
self.command_attrs = attrs = command_attrs if command_attrs is not MISSING else {}
attrs.setdefault('name', 'help')
attrs.setdefault('help', 'Shows this message')