diff --git a/src/makim/cli.py b/src/makim/cli.py index 9764013..ad868e1 100644 --- a/src/makim/cli.py +++ b/src/makim/cli.py @@ -185,7 +185,7 @@ def create_args_string(args: dict[str, str]) -> str: ')' ) - args_data = cast(Dict[str, dict[str, str]], args.get('args', {})) + args_data = cast(Dict[str, Dict[str, str]], args.get('args', {})) for name, spec in args_data.items(): name_clean = name.replace('-', '_') arg_type = normalize_string_type(spec.get('type', 'str')) @@ -277,7 +277,7 @@ def create_dynamic_command(name: str, args: dict[str, str]) -> None: args_str = create_args_string(args) args_param_list = [f'"task": "{name}"'] - args_data = cast(Dict[str, dict[str, str]], args.get('args', {})) + args_data = cast(Dict[str, Dict[str, str]], args.get('args', {})) for arg, arg_details in args_data.items(): arg_clean = arg.replace('-', '_') @@ -309,7 +309,7 @@ def create_dynamic_command(name: str, args: dict[str, str]) -> None: # Apply Click options to the Typer command if 'args' in args: - options_data = cast(Dict[str, dict[str, Any]], args.get('args', {})) + options_data = cast(Dict[str, Dict[str, Any]], args.get('args', {})) dynamic_command = apply_click_options(dynamic_command, options_data)