Skip to content

Commit

Permalink
lint: enable ruff ARG003 rule
Browse files Browse the repository at this point in the history
  • Loading branch information
unexcellent committed Oct 29, 2024
1 parent 63257d2 commit 0cf34f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ ignore = [
"PLW0602",
"N802",
"PERF401",
"ARG003",
]

[tool.mypy]
Expand Down
7 changes: 3 additions & 4 deletions raillabel/format/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 {}
Expand Down Expand Up @@ -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]]:
Expand Down

0 comments on commit 0cf34f9

Please sign in to comment.