Skip to content

Commit

Permalink
mark this editing of a mutable while looping as okay
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Apr 25, 2024
1 parent e36af9e commit 01a8235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cwltest/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def main() -> int:
for t in tests:
if t.get("label"):
logger.warning("The `label` field is deprecated. Use `id` field instead.")
t["short_name"] = t["label"]
t["short_name"] = t["label"] # noqa: B909
elif t.get("id"):
if isinstance(t.get("id"), str):
t["short_name"] = utils.shortname(t["id"])
Expand Down

0 comments on commit 01a8235

Please sign in to comment.