more typing work

This commit is contained in:
Kovid Goyal
2020-03-14 11:42:05 +05:30
parent ea48332f46
commit d3f37eeba4
14 changed files with 216 additions and 194 deletions

View File

@@ -31,7 +31,7 @@ mod_map = {'CTRL': 'CONTROL', 'CMD': 'SUPER', '⌘': 'SUPER',
def parse_mods(parts: Iterable[str], sc: str) -> Optional[int]:
def map_mod(m):
def map_mod(m: str) -> str:
return mod_map.get(m, m)
mods = 0