Skip to content

Commit

Permalink
check for dict
Browse files Browse the repository at this point in the history
  • Loading branch information
bernt-matthias authored Aug 7, 2023
1 parent 75f862b commit 41065f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planemo/workflow_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def _lint_best_practices(path: str, lint_context: WorkflowLintContext) -> None:
"""

def check_json_for_untyped_params(j):
values = j if isinstance(j, list) else j.values()
values = j.values() if isinstance(j, dict) else j
for value in values:
if type(value) in [list, dict, OrderedDict]:
if check_json_for_untyped_params(value):
Expand Down

0 comments on commit 41065f6

Please sign in to comment.