diff options
author | Devaev Maxim <[email protected]> | 2019-06-01 03:54:40 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-06-01 03:54:40 +0300 |
commit | 7037bb0cfafbceb98da478a9d182aa0c43162eb2 (patch) | |
tree | bd25590203b44d0a3688fe74955ae3116790a9b3 /genmap.py | |
parent | 187a195011aacc66cd8652f0af81ee0300bb7381 (diff) |
using dataclasses instead of typed namedtuple
Diffstat (limited to 'genmap.py')
-rwxr-xr-x | genmap.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |