Source code for bus_ride.event
from attrs import define
[docs]
@define
class Event:
"""
Base class for Events.
Add fields to your subclass, whatever is needed to communicate the event to your
:py:class:`~bus_ride.handler.Handler` class(es). An Event itself does not *do*
anything but carry data to its Handler(s).
Using ``@define`` and ``field`` from attrs is recommended to keep it short.
"""
EventType = type[Event]