From 0cf34f966250d4fe63aa51a0ee889c2d94693438 Mon Sep 17 00:00:00 2001 From: unexcellent <> Date: Tue, 29 Oct 2024 19:10:30 +0100 Subject: [PATCH] lint: enable ruff ARG003 rule --- pyproject.toml | 1 - raillabel/format/frame.py | 7 +++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 632339e..8b9490b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -87,7 +87,6 @@ ignore = [ "PLW0602", "N802", "PERF401", - "ARG003", ] [tool.mypy] diff --git a/raillabel/format/frame.py b/raillabel/format/frame.py index 3b8f8fb..2c56a41 100644 --- a/raillabel/format/frame.py +++ b/raillabel/format/frame.py @@ -97,9 +97,9 @@ def fromdict( frame = Frame( uid=int(uid), timestamp=cls._timestamp_fromdict(data_dict), - sensors=cls._sensors_fromdict(data_dict, int(uid), sensors), + sensors=cls._sensors_fromdict(data_dict, sensors), frame_data=cls._frame_data_fromdict(data_dict, sensors), - annotations=cls._objects_fromdict(data_dict, int(uid), objects, sensors), + annotations=cls._objects_fromdict(data_dict, objects, sensors), ) return frame @@ -149,7 +149,7 @@ def _timestamp_fromdict(cls, data_dict: dict) -> t.Optional[decimal.Decimal]: @classmethod def _sensors_fromdict( - cls, data_dict: dict, frame_uid: int, scene_sensors: t.Dict[str, Sensor] + cls, data_dict: dict, scene_sensors: t.Dict[str, Sensor] ) -> t.Dict[str, SensorReference]: if "frame_properties" not in data_dict or "streams" not in data_dict["frame_properties"]: return {} @@ -179,7 +179,6 @@ def _frame_data_fromdict(cls, data_dict: dict, sensors: t.Dict[str, Sensor]) -> def _objects_fromdict( cls, data_dict: dict, - frame_id: int, objects: t.Dict[str, Object], sensors: t.Dict[str, Sensor], ) -> t.Dict[uuid.UUID, t.Type[_ObjectAnnotation]]: