Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: issue 1615 - Switch formatting condition for dictionary #1617

Merged
merged 2 commits into from May 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions snakemake/executors/common.py
Expand Up @@ -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)

Expand Down