From f5fbd8f89106282a1b70308c19760824f99751ee Mon Sep 17 00:00:00 2001 From: Abhijeet Saroha Date: Fri, 4 Oct 2024 08:42:40 +0530 Subject: [PATCH] update code file --- src/makim/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)