diff options
author | Maxim Devaev <[email protected]> | 2022-09-04 18:08:40 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-09-04 18:08:40 +0300 |
commit | ee3e224e396494cd0d69bb6167087a071a20349c (patch) | |
tree | 5becd28570e58a03c6e1e231d0db24c264a73f88 /kvmd/keyboard/mappings.py.mako | |
parent | 4b75221e9470b4a009955d7677f16adf8e23e302 (diff) |
new typing style
Diffstat (limited to 'kvmd/keyboard/mappings.py.mako')
-rw-r--r-- | kvmd/keyboard/mappings.py.mako | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kvmd/keyboard/mappings.py.mako b/kvmd/keyboard/mappings.py.mako index 91d46297..b8a6596c 100644 --- a/kvmd/keyboard/mappings.py.mako +++ b/kvmd/keyboard/mappings.py.mako @@ -22,8 +22,6 @@ import dataclasses -from typing import Dict - # ===== @dataclasses.dataclass(frozen=True) @@ -43,7 +41,7 @@ class Key: usb: UsbKey <%! import operator %> -KEYMAP: Dict[str, Key] = { +KEYMAP: dict[str, Key] = { % for km in sorted(keymap, key=operator.attrgetter("mcu_code")): "${km.web_name}": Key(mcu=McuKey(code=${km.mcu_code}), usb=UsbKey(code=${km.usb_key.code}, is_modifier=${km.usb_key.is_modifier})), % endfor |