Write a basic keymap sanity checker utility

This commit is contained in:
Josh Klar committed 2018-09-23 03:03:49 -07:00
1 parent 3f83e6a85b
commit 94130740c4
19 files changed
+246 -15

No files matched your search

+18
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()