diff --git a/pyproject.toml b/pyproject.toml index 8689255..b3c0e01 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -94,7 +94,6 @@ ignore = [ "RUF012", "ANN204", "SIM110", - "E741", "C901", ] diff --git a/raillabel/format/_object_annotation.py b/raillabel/format/_object_annotation.py index 3613841..d69ed6f 100644 --- a/raillabel/format/_object_annotation.py +++ b/raillabel/format/_object_annotation.py @@ -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 ====================================================