add examples to lint and fix warnings

This commit is contained in:
Mike Kinney
2022-02-10 14:51:22 -08:00
parent 363b268ccf
commit 5cfb6ffa11
7 changed files with 36 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ if len(sys.argv) < 2:
print(f"usage: {sys.argv[0]} host")
sys.exit(1)
def onConnection(interface, topic=pub.AUTO_TOPIC):
def onConnection(interface, topic=pub.AUTO_TOPIC): # pylint: disable=unused-argument
"""This is called when we (re)connect to the radio."""
print(interface.myInfo)
interface.close()