Skip to content

Commit

Permalink
add union type
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-dot committed Feb 7, 2024
1 parent 06b58f4 commit 5ac9fef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dodal/devices/aperturescatterguard.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from collections import namedtuple
from dataclasses import dataclass
from typing import List, Optional
from typing import List, Optional, Union

import numpy as np
from ophyd import Component as Cpt
Expand Down Expand Up @@ -146,7 +146,7 @@ def set(self, pos: ApertureFiveDimensionalLocation) -> AndStatus:

def _safe_move_within_datacollection_range(
self, pos: ApertureFiveDimensionalLocation
) -> AndStatus | Status:
) -> Union[AndStatus, Status]:
"""
Move the aperture and scatterguard combo safely to a new position.
See https://github.com/DiamondLightSource/hyperion/wiki/Aperture-Scatterguard-Collisions
Expand Down

0 comments on commit 5ac9fef

Please sign in to comment.