Skip to content

Commit

Permalink
use isinstance for type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
elichad committed Jun 26, 2024
1 parent 5a24427 commit ee7c30b
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 @@ -215,7 +215,7 @@ def check_json_for_untyped_params(j):
lint_context.warn("Workflow does not specify a creator.")
else:
creators = workflow_dict.get("creator")
if type(creators) != list:
if not isinstance(creators, list):
creators = [creators]
for creator in creators:
if creator.get("class", "").lower() == "person" and "identifier" in creator:
Expand Down

0 comments on commit ee7c30b

Please sign in to comment.