diff --git a/examples/plugins/example_plugin.py b/examples/plugins/example_plugin.py index 04ea2ce..8ca5e0a 100644 --- a/examples/plugins/example_plugin.py +++ b/examples/plugins/example_plugin.py @@ -1,7 +1,6 @@ import logging -from aprsd import plugin - +from aprsd import packets, plugin LOG = logging.getLogger("APRSD") @@ -14,7 +13,7 @@ class HelloPlugin(plugin.APRSDRegexCommandPluginBase): command_regex = "^[hH]" command_name = "hello" - def process(self, packet): + def process(self, packet: packets.MessagePacket): LOG.info("HelloPlugin") reply = f"Hello '{packet.from_call}'" return reply