using dataclasses instead of typed namedtuple

This commit is contained in:
Devaev Maxim
2019-06-01 03:54:40 +03:00
parent 187a195011
commit 7037bb0cfa
4 changed files with 23 additions and 17 deletions

View File

@@ -23,15 +23,16 @@
import sys
import textwrap
import dataclasses
from typing import List
from typing import NamedTuple
import mako.template
# =====
class _KeyMapping(NamedTuple):
@dataclasses.dataclass(frozen=True)
class _KeyMapping:
kvmd_code: int
arduino_hid_key: str
web_key: str