summaryrefslogtreecommitdiff
path: root/kvmd/keyboard/printer.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-09-04 18:08:40 +0300
committerMaxim Devaev <[email protected]>2022-09-04 18:08:40 +0300
commitee3e224e396494cd0d69bb6167087a071a20349c (patch)
tree5becd28570e58a03c6e1e231d0db24c264a73f88 /kvmd/keyboard/printer.py
parent4b75221e9470b4a009955d7677f16adf8e23e302 (diff)
new typing style
Diffstat (limited to 'kvmd/keyboard/printer.py')
-rw-r--r--kvmd/keyboard/printer.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/kvmd/keyboard/printer.py b/kvmd/keyboard/printer.py
index 20ff9a56..7261a8ef 100644
--- a/kvmd/keyboard/printer.py
+++ b/kvmd/keyboard/printer.py
@@ -20,8 +20,6 @@
# ========================================================================== #
-from typing import Tuple
-from typing import Dict
from typing import Generator
from .keysym import SymmapModifiers
@@ -31,9 +29,9 @@ from .mappings import WebModifiers
# =====
def text_to_web_keys( # pylint: disable=too-many-branches
text: str,
- symmap: Dict[int, Dict[int, str]],
+ symmap: dict[int, dict[int, str]],
shift_key: str=WebModifiers.SHIFT_LEFT,
-) -> Generator[Tuple[str, bool], None, None]:
+) -> Generator[tuple[str, bool], None, None]:
assert shift_key in WebModifiers.SHIFTS