diff --git a/src/dodal/common/types.py b/src/dodal/common/types.py index d721a890ab..1eeedcfa59 100644 --- a/src/dodal/common/types.py +++ b/src/dodal/common/types.py @@ -1,5 +1,4 @@ from typing import ( - Annotated, Any, Callable, Generator, @@ -7,11 +6,9 @@ from bluesky.utils import Msg -Group = Annotated[str, "String identifier used by 'wait' or stubs that await"] -MsgGenerator = Annotated[ - Generator[Msg, Any, None], - "A true 'plan', usually the output of a generator function", -] -PlanGenerator = Annotated[ - Callable[..., MsgGenerator], "A function that generates a plan" -] +# String identifier used by 'wait' or stubs that await +Group = str +# A true 'plan', usually the output of a generator function +MsgGenerator = Generator[Msg, Any, None] +# A function that generates a plan +PlanGenerator = Callable[..., MsgGenerator]