diff options
Diffstat (limited to 'kvmd/keyboard/printer.py')
-rw-r--r-- | kvmd/keyboard/printer.py | 6 |
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 |