diff --git a/pyproject.toml b/pyproject.toml index ca54350..632339e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -88,7 +88,6 @@ ignore = [ "N802", "PERF401", "ARG003", - "ANN001", ] [tool.mypy] diff --git a/raillabel/format/frame.py b/raillabel/format/frame.py index 7ec9068..3b8f8fb 100644 --- a/raillabel/format/frame.py +++ b/raillabel/format/frame.py @@ -225,21 +225,3 @@ def _annotations_asdict(self) -> dict: ) return annotations_dict - - def __eq__(self, other) -> bool: - """Handel equal comparisons.""" - if not hasattr(other, "__dict__"): - return False - - if len(self.__dict__) != len(other.__dict__): - return False - - for attr in self.__dict__: - if type(getattr(self, attr)) == type(self): - if getattr(self, attr).uid != getattr(other, attr).uid: - return False - - elif getattr(self, attr) != getattr(other, attr): - return False - - return True diff --git a/raillabel/format/sensor.py b/raillabel/format/sensor.py index c757b8e..f52dac7 100644 --- a/raillabel/format/sensor.py +++ b/raillabel/format/sensor.py @@ -119,7 +119,7 @@ def _as_stream_dict(self) -> dict: return stream_repr @classmethod - def _extrinsics_fromdict(cls, data_dict) -> t.Optional[Transform]: + def _extrinsics_fromdict(cls, data_dict: t.Dict) -> t.Optional[Transform]: if "pose_wrt_parent" not in data_dict: return None @@ -139,7 +139,7 @@ def _extrinsics_fromdict(cls, data_dict) -> t.Optional[Transform]: @classmethod def _intrinsics_fromdict( - cls, data_dict, sensor_type: t.Optional["SensorType"] + cls, data_dict: t.Dict, sensor_type: t.Optional["SensorType"] ) -> t.Optional[IntrinsicsPinhole]: if "stream_properties" not in data_dict: return None @@ -157,7 +157,7 @@ def _intrinsics_fromdict( return None @classmethod - def _type_fromdict(cls, data_dict) -> t.Optional["SensorType"]: + def _type_fromdict(cls, data_dict: t.Dict) -> t.Optional["SensorType"]: if "type" not in data_dict: return None