From 3f70924460e07217fd0c8244e4f393fff1b1b1b3 Mon Sep 17 00:00:00 2001 From: unexcellent <> Date: Tue, 29 Oct 2024 17:28:42 +0100 Subject: [PATCH] lint: enable ruff E741 rule --- pyproject.toml | 1 - raillabel/format/_object_annotation.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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 ====================================================