summaryrefslogtreecommitdiff
path: root/genmap.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-06-01 03:54:40 +0300
committerDevaev Maxim <[email protected]>2019-06-01 03:54:40 +0300
commit7037bb0cfafbceb98da478a9d182aa0c43162eb2 (patch)
treebd25590203b44d0a3688fe74955ae3116790a9b3 /genmap.py
parent187a195011aacc66cd8652f0af81ee0300bb7381 (diff)
using dataclasses instead of typed namedtuple
Diffstat (limited to 'genmap.py')
-rwxr-xr-xgenmap.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/genmap.py b/genmap.py
index b601d007..60b2bc9b 100755
--- a/genmap.py
+++ b/genmap.py
@@ -23,15 +23,16 @@
import sys
import textwrap
+import dataclasses
from typing import List
-from typing import NamedTuple
import mako.template
# =====
-class _KeyMapping(NamedTuple):
[email protected](frozen=True)
+class _KeyMapping:
kvmd_code: int
arduino_hid_key: str
web_key: str