Skip to content

Commit

Permalink
Fix use in for single element, restore moved type:ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
adivardi committed Apr 29, 2024
1 parent 1008e2e commit 24caf72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions labelCloud/control/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,10 @@ def key_press_event(self, a0: QtGui.QKeyEvent) -> None:
elif a0.key() in [Keys.Key_G, Keys.Key_Down]:
# select previous bbox
self.select_relative_bbox(1)
elif a0.key() in Keys.Key_Y:
elif a0.key() == Keys.Key_Y:
# change bbox class to previous available class
self.select_relative_class(-1)
elif a0.key() in Keys.Key_H:
elif a0.key() == Keys.Key_H:
# change bbox class to next available class
self.select_relative_class(1)
elif a0.key() in list(range(49, 58)):
Expand Down
4 changes: 2 additions & 2 deletions labelCloud/model/point_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,9 +394,9 @@ def print_details(self) -> None:
else (
green(len(self.colors)) # type: ignore
if len(self.colors) == len(self.points) # type: ignore
else red(len(self.colors))
else red(len(self.colors)) # type: ignore
)
), # type: ignore
),
]
)
print_column(["Point Cloud Center:", str(np.round(self.center, 2))])
Expand Down

0 comments on commit 24caf72

Please sign in to comment.