Skip to content

Commit

Permalink
refactor: remove type ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
unexcellent committed Nov 15, 2024
1 parent 826f864 commit 45eef29
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion raillabel/scene_builder/scene_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ def _resolve_empty_object_name_or_type(
object_type = object_name.split("_")[0]
return object_type, object_name

return object_type, object_name # type: ignore
if object_name is not None and object_type is not None:
return object_type, object_name

raise RuntimeError


def _resolve_empty_object_uid(scene: Scene, object_id: str | UUID | None) -> UUID:
Expand Down

0 comments on commit 45eef29

Please sign in to comment.