Skip to content

Commit

Permalink
fix: remove parentheses and lint
Browse files Browse the repository at this point in the history
Signed-off-by: mao3267 <chenvincent610@gmail.com>
  • Loading branch information
mao3267 committed Aug 1, 2024
1 parent 1b1bf35 commit 1372b6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions flytekit/clis/sdk_in_container/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/flytekit/unit/cli/pyflyte/my_wf_input.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 1372b6a

Please sign in to comment.