Skip to content

Commit

Permalink
Ignore pyright reportReturnType
Browse files Browse the repository at this point in the history
  • Loading branch information
JackEAllen committed Nov 1, 2024
1 parent ed29ccd commit be277db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mantidimaging/gui/widgets/line_profile_plot/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def get_image_region(self) -> tuple[np.ndarray, np.ndarray] | None:
return self.getArrayRegion(self._image_view.image_data,
self._image_view.image_item,
axes=(1, 0),
returnMappedCoords=True)
returnMappedCoords=True) # type: ignore

def reset(self) -> None:
if self._image_data_exists() and self._roi_line_is_visible:
Expand All @@ -114,7 +114,7 @@ def _set_initial_state(self) -> None:
# Prevent emitting a RegionChanged signal from setting the state programmatically
with BlockQtSignals(self):
initial_pos_x = 0
initial_pos_y = self._image_view.image_item.height() // 2
initial_pos_y = self._image_view.image_item.height() // 2 # type: ignore
image_width = self._image_view.image_item.width()
image_height = self._image_view.image_item.height()

Expand Down

0 comments on commit be277db

Please sign in to comment.