Fixed type hints

This commit is contained in:
Dimitris Zlatanidis 2023-12-10 23:27:04 +02:00
parent 9ee8630a85
commit faf95e5780

View file

@ -766,7 +766,7 @@ def main() -> None:
usage.help_short(1) usage.help_short(1)
sub_menu = SubMenu(args) sub_menu = SubMenu(args)
arguments_no_options: dict[str] = { arguments_no_options: dict = {
'-h': sub_menu.help, '-h': sub_menu.help,
'--help': sub_menu.help, '--help': sub_menu.help,
'-v': sub_menu.version, '-v': sub_menu.version,
@ -789,7 +789,7 @@ def main() -> None:
raise SystemExit(1) raise SystemExit(1)
menu = Menu(args) menu = Menu(args)
arguments: dict[str] = { arguments: dict = {
'help': menu.help_for_commands, 'help': menu.help_for_commands,
'update': menu.update, 'update': menu.update,
'-u': menu.update, '-u': menu.update,