Skip to content
Permalink
Browse files
fix: issue 1615 - Switch formatting condition for dictionary (#1617)
* Switch formatting condition for dictionary

* empty commit
  • Loading branch information
LarsStegemanGT committed May 2, 2022
1 parent 104cab9 commit 0771062a07f0e2cfe9ee45a2276aa61b096eb6e1
Showing 1 changed file with 3 additions and 3 deletions.
@@ -12,10 +12,10 @@ def format_cli_arg(flag, value, quote=True, skip=False):


def format_cli_pos_arg(value, quote=True):
if not_iterable(value):
if isinstance(value, dict):
return join_cli_args(repr(f"{key}={val}") for key, val in value.items())
elif not_iterable(value):
return repr(value)
elif isinstance(value, dict):
return join_cli_args(repr(f"{key}={val}") for key, val in value)
else:
return join_cli_args(repr(v) for v in value)

0 comments on commit 0771062

Please sign in to comment.