Skip to content

Commit

Permalink
(DiamondLightSource/hyperion#1169) Fix issues with mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
rtuck99 committed Apr 12, 2024
1 parent 72dd195 commit 8881620
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dodal/devices/oav/grid_overlay.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Orientation(Enum):


def _add_parallel_lines_to_image(
image: Image,
image: Image.Image,
start_x: int,
start_y: int,
line_length: int,
Expand Down
2 changes: 1 addition & 1 deletion tests/devices/unit_tests/test_oav.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def test_snapshot_trigger_saves_to_correct_file(
):
image = PIL.Image.open("test")
mock_save = MagicMock()
image.save = mock_save
image.save = mock_save # type: ignore
mock_open.return_value.__enter__.return_value = image
st = fake_oav.snapshot.trigger()
st.wait()
Expand Down

0 comments on commit 8881620

Please sign in to comment.