mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 09:01:54 +08:00
using dataclasses instead of typed namedtuple
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user