From 1372b6adc0dd61795bc1f58bfb3e1a062505e479 Mon Sep 17 00:00:00 2001 From: mao3267 Date: Thu, 1 Aug 2024 16:46:07 +0800 Subject: [PATCH] fix: remove parentheses and lint Signed-off-by: mao3267 --- flytekit/clis/sdk_in_container/run.py | 5 +---- tests/flytekit/unit/cli/pyflyte/my_wf_input.json | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/flytekit/clis/sdk_in_container/run.py b/flytekit/clis/sdk_in_container/run.py index 281102e5d49..1907b3ccb18 100644 --- a/flytekit/clis/sdk_in_container/run.py +++ b/flytekit/clis/sdk_in_container/run.py @@ -927,10 +927,7 @@ def _create_command( # Add options for each of the workflow inputs params = [] - for ( - input_name, - input_type_val, - ) in loaded_entity.python_interface.inputs_with_defaults.items(): + for input_name, input_type_val in loaded_entity.python_interface.inputs_with_defaults.items(): literal_var = loaded_entity.interface.inputs.get(input_name) python_type, default_val = input_type_val required = type(None) not in get_args(python_type) and default_val is None diff --git a/tests/flytekit/unit/cli/pyflyte/my_wf_input.json b/tests/flytekit/unit/cli/pyflyte/my_wf_input.json index 83b21c0d13c..6480dcef68d 100644 --- a/tests/flytekit/unit/cli/pyflyte/my_wf_input.json +++ b/tests/flytekit/unit/cli/pyflyte/my_wf_input.json @@ -44,4 +44,4 @@ "q": "tests/flytekit/unit/cli/pyflyte/testdata", "remote": "/Users/chenvincent/Desktop/Github/flytekit/tests/flytekit/unit/cli/pyflyte/testdata", "image": "/Users/chenvincent/Desktop/Github/flytekit/tests/flytekit/unit/cli/pyflyte/testdata" -} \ No newline at end of file +}