Source code for bus_ride.command
[docs]
class Command:
"""
Base class for all Commands.
Subclass this and add the necessary fields to communicate the command to its
:py:class:`~bus_ride.receiver.Receiver`.
Commands should simply carry data to their Receiver, they don't *do* anything.
Using ``@define`` and ``field`` from attrs is recommended to keep it short.
"""