Write a basic keymap sanity checker utility

This commit is contained in:
Josh Klar
2018-09-23 02:38:28 -07:00
parent 3f83e6a85b
commit 94130740c4
19 changed files with 246 additions and 15 deletions

View File

@@ -0,0 +1,18 @@
class Anything:
'''
A stub class which will repr as a provided name
'''
def __init__(self, name):
self.name = name
def __repr__(self):
return 'Anything<{}>'.format(self.name)
class Passthrough:
def __getattr__(self, attr):
return Anything(attr)
class Pin:
board = Passthrough()

View File

View File

View File