Skip to content

Commit

Permalink
lint: enable ruff E741 rule
Browse files Browse the repository at this point in the history
  • Loading branch information
unexcellent committed Oct 29, 2024
1 parent 1a529cb commit 3f70924
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ ignore = [
"RUF012",
"ANN204",
"SIM110",
"E741",
"C901",
]

Expand Down
2 changes: 1 addition & 1 deletion raillabel/format/_object_annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def _attributes_fromdict(
if "attributes" not in data_dict:
return {}

return {a["name"]: a["val"] for l in data_dict["attributes"].values() for a in l}
return {a["name"]: a["val"] for type_ in data_dict["attributes"].values() for a in type_}

# === Special Methods ====================================================

Expand Down

0 comments on commit 3f70924

Please sign in to comment.