From ee3e224e396494cd0d69bb6167087a071a20349c Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Sun, 4 Sep 2022 18:08:40 +0300 Subject: new typing style --- kvmd/keyboard/printer.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'kvmd/keyboard/printer.py') 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 -- cgit v1.2.3