DiamondLightSource / tickit

Event-based hardware simulation framework
Apache License 2.0
7 stars 0 forks source link

Create a type alias for message types #117

Closed abbiemery closed 1 year ago

abbiemery commented 1 year ago

Now there are a number of messages types being produced and consumed by components it could be nice to have an alias for such messages.

ComponentOutput = Union[Interrupt, Output, ComponentException]
ComponentInput = Union[Input, StopComponent]

As discussed in #115 there are options here to have Input or Output classes generic over the type of message.